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

Unified Diff: ui/aura/window_tree_host_delegate.h

Issue 188853003: Revert of Clean up WindowEventDispatcher some more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/window_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_delegate.h
diff --git a/ui/aura/window_tree_host_delegate.h b/ui/aura/window_tree_host_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5ba407e0b05ab47624e7936fe9cef06a0f02447
--- /dev/null
+++ b/ui/aura/window_tree_host_delegate.h
@@ -0,0 +1,60 @@
+// 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_WINDOW_TREE_HOST_DELEGATE_H_
+#define UI_AURA_WINDOW_TREE_HOST_DELEGATE_H_
+
+#include "ui/aura/aura_export.h"
+
+namespace gfx {
+class Point;
+class Rect;
+class Size;
+}
+
+namespace ui {
+class Event;
+class EventProcessor;
+class KeyEvent;
+class MouseEvent;
+class ScrollEvent;
+class TouchEvent;
+}
+
+namespace aura {
+
+class RootWindow;
+
+// A private interface used by WindowTreeHost implementations to communicate
+// with their owning RootWindow.
+class AURA_EXPORT WindowTreeHostDelegate {
+ public:
+ virtual void OnHostCancelMode() = 0;
+
+ // Called when the windowing system activates the window.
+ virtual void OnHostActivated() = 0;
+
+ // Called when system focus is changed to another window.
+ virtual void OnHostLostWindowCapture() = 0;
+
+ // Called when the windowing system has mouse grab because it's performing a
+ // window move on our behalf, but we should still paint as if we're active.
+ virtual void OnHostLostMouseGrab() = 0;
+
+ virtual void OnHostResized(const gfx::Size& size) = 0;
+
+ virtual void OnCursorMovedToRootLocation(const gfx::Point& root_location) = 0;
+
+ virtual WindowEventDispatcher* AsDispatcher() = 0;
+ virtual const WindowEventDispatcher* AsDispatcher() const = 0;
+
+ virtual ui::EventProcessor* GetEventProcessor() = 0;
+
+ protected:
+ virtual ~WindowTreeHostDelegate() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_WINDOW_TREE_HOST_DELEGATE_H_
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698