Commit 7f2d5d50 authored by sadrul@chromium.org's avatar sadrul@chromium.org

aura-views: Make views_aura_desktop compile and run on linux.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7739016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99901 0039d316-1c4b-4281-b951-d872f2087c98
parent 03e17d27
......@@ -50,7 +50,7 @@ void UpdateCairoFontOptions() {
gchar* hint_style = NULL;
gchar* rgba_style = NULL;
#if !defined(USE_WAYLAND)
#if !defined(USE_WAYLAND) && !defined(USE_AURA)
GtkSettings* gtk_settings = gtk_settings_get_default();
g_object_get(gtk_settings,
"gtk-xft-antialias", &antialias,
......
......@@ -114,7 +114,7 @@ string16 FindBestMatchFontFamilyName(const char* family_name) {
}
std::string GetDefaultFont() {
#if defined(USE_WAYLAND)
#if defined(USE_WAYLAND) || defined(USE_AURA)
return "sans 10";
#else
GtkSettings* settings = gtk_settings_get_default();
......
......@@ -20,6 +20,10 @@
#include "views/widget/widget.h"
#include "views/widget/widget_delegate.h"
#if !defined(OS_WIN)
#include "aura/hit_test.h"
#endif
namespace {
// Trivial WindowDelegate implementation that draws a colored background.
......
......@@ -877,6 +877,12 @@ base::MessagePumpDispatcher::DispatchStatus
base::MessagePumpDispatcher::EVENT_QUIT :
base::MessagePumpDispatcher::EVENT_PROCESSED;
}
#elif defined(USE_AURA)
base::MessagePumpDispatcher::DispatchStatus
MenuController::Dispatch(XEvent* xev) {
NOTREACHED();
return EVENT_PROCESSED;
}
#elif defined(TOUCH_UI)
base::MessagePumpDispatcher::DispatchStatus
MenuController::Dispatch(XEvent* xev) {
......
......@@ -222,7 +222,7 @@ class VIEWS_EXPORT MenuController : public MessageLoop::Dispatcher {
#elif defined(USE_WAYLAND)
virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
ui::WaylandEvent* event);
#elif defined(TOUCH_UI)
#elif defined(TOUCH_UI) || defined(USE_AURA)
virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(XEvent* xevent);
#else
virtual bool Dispatch(GdkEvent* event);
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "views/drag_utils.h"
#include "base/logging.h"
namespace drag_utils {
void SetDragImageOnDataObject(const SkBitmap& bitmap,
const gfx::Size& size,
const gfx::Point& cursor_offset,
OSExchangeData* data_object) {
NOTIMPLEMENTED();
}
} // namespace drag_utils
......@@ -236,6 +236,7 @@
'drag_utils.cc',
'drag_utils.h',
'drag_utils_gtk.cc',
'drag_utils_linux.cc',
'drag_utils_win.cc',
'events/event.cc',
'events/event.h',
......@@ -417,6 +418,10 @@
'dependencies': [
'../aura/aura.gyp:aura',
],
'sources/': [
['exclude', '_(gtk|x)\\.cc$'],
['exclude', '/(gtk|x)_[^/]*\\.cc$'],
],
'sources!': [
'controls/menu/menu_2.cc',
'controls/menu/menu_2.h',
......@@ -436,6 +441,8 @@
'controls/table/table_view_observer.h',
'controls/tree/tree_view.cc',
'controls/tree/tree_view.h',
'focus/accelerator_handler_aura.cc',
'focus/accelerator_handler_touch.cc',
'widget/aero_tooltip_manager.cc',
'widget/aero_tooltip_manager.h',
'widget/child_window_message_processor.cc',
......@@ -451,6 +458,10 @@
],
}],
],
}, { # else: use_aura==1
'sources!': [
'drag_utils_linux.cc',
]
}],
['toolkit_uses_gtk == 1', {
'dependencies': [
......@@ -842,6 +853,7 @@
'target_name': 'views_aura_desktop',
'type': 'executable',
'dependencies': [
'../aura/aura.gyp:aura',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../chrome/chrome.gyp:packed_resources',
......
......@@ -312,7 +312,7 @@ const DialogClientView* DialogClientView::AsDialogClientView() const {
void DialogClientView::OnPaint(gfx::Canvas* canvas) {
#if defined(OS_WIN)
FillViewWithSysColor(canvas, this, GetSysColor(COLOR_3DFACE));
#elif defined(USE_WAYLAND)
#elif defined(USE_WAYLAND) || defined(USE_AURA)
SkColor sk_color = SkColorSetARGB(200, 255, 255, 255);
canvas->FillRectInt(sk_color, 0, 0, width(), height());
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment