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

Unified Diff: ui/aura/root_window_host_delegate.h

Issue 10825050: Introduce RootWindowHostDelegate. The RootWindowHost performs most of its communication with RootWi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_delegate.h
===================================================================
--- ui/aura/root_window_host_delegate.h (revision 0)
+++ ui/aura/root_window_host_delegate.h (revision 0)
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 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.
+
+#ifndef UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
+#define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
+
+namespace gfx {
+class Size;
+}
+
+namespace aura {
+
+class KeyEvent;
+class MouseEvent;
+class RootWindow;
+class ScrollEvent;
+class TouchEvent;
+
+// A private interface used by RootWindowHost implementations to communicate
+// with their owning RootWindow.
+class AURA_EXPORT RootWindowHostDelegate {
+ public:
+ virtual bool OnHostKeyEvent(KeyEvent* event) = 0;
+ virtual bool OnHostMouseEvent(MouseEvent* event) = 0;
+ virtual bool OnHostScrollEvent(ScrollEvent* event) = 0;
+ virtual bool OnHostTouchEvent(TouchEvent* event) = 0;
+
+ virtual void OnHostLostCapture() = 0;
+
+ virtual void OnHostPaint() = 0;
+
+ virtual void OnHostResized(const gfx::Size& size) = 0;
+
+ virtual float GetDeviceScaleFactor() = 0;
+
+ virtual RootWindow* AsRootWindow() = 0;
+
+ protected:
+ virtual ~RootWindowHostDelegate() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
Property changes on: ui\aura\root_window_host_delegate.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698