Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2099)

Unified Diff: ui/aura/root_window_host.h

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Commnet that we're racing the window manager. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/root_window_host.h
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h
index 47bba42b8e40aa74f785282931147f31a0d3d2f5..35903848582789f5359d6d4ca62fec97839c4b08 100644
--- a/ui/aura/root_window_host.h
+++ b/ui/aura/root_window_host.h
@@ -18,6 +18,7 @@ class Size;
namespace aura {
+class MouseEvent;
class RootWindow;
// RootWindowHost bridges between a native window and the embedded RootWindow.
@@ -92,6 +93,15 @@ class RootWindowHost {
#if !defined(OS_MACOSX)
virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
#endif
+
+ // Used to enable or disable the native window borders on a window.
+ virtual void SetUseHostWindowBorders(bool use_os_borders) = 0;
Ben Goodger (Google) 2012/05/10 14:52:58 So I'd rather not expose chrome-ui related functio
+
+ // Signal to the OS that it should start acting as if we're dragging the
+ // window, either for movement or resizing. Returns true if we need to stop
+ // event propagation.
+ virtual bool DispatchHostWindowDragMovement(int hittest,
+ MouseEvent* event) = 0;
Ben Goodger (Google) 2012/05/10 14:52:58 similar to above. seems like you could attach a he
};
} // namespace aura
« ui/aura/event.cc ('K') | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698