diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 17:27:00 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 17:27:00 +0000 |
commit | f8247d39462e7c279e3a4a51264e94910920c43c (patch) | |
tree | 46e720a0b00af6774f4d2cf94cedf9cd5359ca37 | |
parent | 671c4db73b13469d6b8c27246f364b3ad0f6aa14 (diff) | |
download | chromium_src-f8247d39462e7c279e3a4a51264e94910920c43c.zip chromium_src-f8247d39462e7c279e3a4a51264e94910920c43c.tar.gz chromium_src-f8247d39462e7c279e3a4a51264e94910920c43c.tar.bz2 |
Fix windows Aura bustage.TBR=saintlouBUG=noneTEST=none
Review URL: http://codereview.chromium.org/8098004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103483 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | ui/gfx/native_widget_types.h | 20 | ||||
-rw-r--r-- | ui/ui.gyp | 1 | ||||
-rw-r--r-- | views/view.cc | 4 |
3 files changed, 15 insertions, 10 deletions
diff --git a/ui/gfx/native_widget_types.h b/ui/gfx/native_widget_types.h index d973c12..55aa1c7 100644 --- a/ui/gfx/native_widget_types.h +++ b/ui/gfx/native_widget_types.h @@ -92,18 +92,29 @@ namespace gfx { #if defined(USE_AURA) typedef aura::Window* NativeView; typedef aura::Window* NativeWindow; +typedef SkRegion* NativeRegion; #elif defined(OS_WIN) typedef HWND NativeView; typedef HWND NativeWindow; +typedef HRGN NativeRegion; #elif defined(OS_MACOSX) typedef NSView* NativeView; typedef NSWindow* NativeWindow; #elif defined(USE_WAYLAND) typedef ui::WaylandWindow* NativeView; typedef ui::WaylandWindow* NativeWindow; +// TODO(dnicoara) This should be replaced with a cairo region or maybe +// a Wayland specific region +typedef GdkRegion* NativeRegion; +#elif defined(TOOLKIT_USES_GTK) +typedef GdkRegion* NativeRegion; #elif defined(USE_X11) typedef GtkWidget* NativeView; typedef GtkWindow* NativeWindow; +#elif defined(OS_ANDROID) +typedef ChromeView* NativeView; +typedef ChromeView* NativeWindow; +typedef void* NativeRegion; #endif #if defined(OS_WIN) @@ -112,7 +123,6 @@ typedef HWND NativeEditView; typedef HDC NativeDrawingContext; typedef HCURSOR NativeCursor; typedef HMENU NativeMenu; -typedef HRGN NativeRegion; typedef IAccessible* NativeViewAccessible; #elif defined(OS_MACOSX) typedef NSFont* NativeFont; @@ -127,9 +137,6 @@ typedef void* NativeEditView; typedef cairo_t* NativeDrawingContext; typedef void* NativeCursor; typedef void* NativeMenu; -// TODO(dnicoara) This should be replaced with a cairo region or maybe -// a Wayland specific region -typedef GdkRegion* NativeRegion; typedef void* NativeViewAccessible; #elif defined(TOOLKIT_USES_GTK) typedef PangoFontDescription* NativeFont; @@ -137,7 +144,6 @@ typedef GtkWidget* NativeEditView; typedef cairo_t* NativeDrawingContext; typedef GdkCursor* NativeCursor; typedef GtkWidget* NativeMenu; -typedef GdkRegion* NativeRegion; typedef void* NativeViewAccessible; #elif defined(USE_AURA) typedef PangoFontDescription* NativeFont; @@ -145,17 +151,13 @@ typedef void* NativeEditView; typedef cairo_t* NativeDrawingContext; typedef void* NativeCursor; typedef void* NativeMenu; -typedef SkRegion* NativeRegion; typedef void* NativeViewAccessible; #elif defined(OS_ANDROID) typedef void* NativeFont; -typedef ChromeView* NativeView; -typedef ChromeView* NativeWindow; typedef void* NativeEditView; typedef void* NativeDrawingContext; typedef void* NativeCursor; typedef void* NativeMenu; -typedef void* NativeRegion; typedef void* NativeViewAccessible; #endif @@ -319,6 +319,7 @@ ['use_aura==1 and OS=="win"', { 'sources/': [ ['exclude', 'base/dragdrop/os_exchange_data_provider_aura.cc'], + ['exclude', 'gfx/path_win.cc'], ], }], ['use_glib == 1', { diff --git a/views/view.cc b/views/view.cc index 338db86..6e6a4de 100644 --- a/views/view.cc +++ b/views/view.cc @@ -731,7 +731,9 @@ bool View::HitTest(const gfx::Point& l) const { gfx::Path mask; GetHitTestMask(&mask); // TODO: can this use SkRegion's contains instead? -#if defined(OS_WIN) +#if defined(USE_AURA) + NOTIMPLEMENTED(); +#elif defined(OS_WIN) base::win::ScopedRegion rgn(mask.CreateNativeRegion()); return !!PtInRegion(rgn, l.x(), l.y()); #elif defined(TOOLKIT_USES_GTK) |