| Index: trunk/src/ui/aura/root_window.h
|
| ===================================================================
|
| --- trunk/src/ui/aura/root_window.h (revision 236091)
|
| +++ trunk/src/ui/aura/root_window.h (working copy)
|
| @@ -45,7 +45,7 @@
|
|
|
| namespace aura {
|
| class RootWindow;
|
| -class WindowTreeHost;
|
| +class RootWindowHost;
|
| class RootWindowObserver;
|
| class TestScreen;
|
|
|
| @@ -54,7 +54,7 @@
|
| public ui::GestureEventHelper,
|
| public ui::LayerAnimationObserver,
|
| public aura::client::CaptureDelegate,
|
| - public aura::WindowTreeHostDelegate {
|
| + public aura::RootWindowHostDelegate {
|
| public:
|
| struct AURA_EXPORT CreateParams {
|
| // CreateParams with initial_bounds and default host in pixel.
|
| @@ -65,13 +65,13 @@
|
|
|
| // A host to use in place of the default one that RootWindow will create.
|
| // NULL by default.
|
| - WindowTreeHost* host;
|
| + RootWindowHost* host;
|
| };
|
|
|
| explicit RootWindow(const CreateParams& params);
|
| virtual ~RootWindow();
|
|
|
| - // Returns the WindowTreeHost for the specified accelerated widget, or NULL
|
| + // Returns the RootWindowHost for the specified accelerated widget, or NULL
|
| // if there is none associated.
|
| static RootWindow* GetForAcceleratedWidget(gfx::AcceleratedWidget widget);
|
|
|
| @@ -79,11 +79,11 @@
|
| return const_cast<Window*>(const_cast<const RootWindow*>(this)->window());
|
| }
|
| const Window* window() const { return window_.get(); }
|
| - WindowTreeHost* host() {
|
| - return const_cast<WindowTreeHost*>(
|
| + RootWindowHost* host() {
|
| + return const_cast<RootWindowHost*>(
|
| const_cast<const RootWindow*>(this)->host());
|
| }
|
| - const WindowTreeHost* host() const { return host_.get(); }
|
| + const RootWindowHost* host() const { return host_.get(); }
|
| gfx::NativeCursor last_cursor() const { return last_cursor_; }
|
| Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
|
| Window* mouse_moved_handler() { return mouse_moved_handler_; }
|
| @@ -99,7 +99,7 @@
|
| // types (although the latter is currently a no-op).
|
| void RepostEvent(const ui::LocatedEvent& event);
|
|
|
| - WindowTreeHostDelegate* AsWindowTreeHostDelegate();
|
| + RootWindowHostDelegate* AsRootWindowHostDelegate();
|
|
|
| // Gets/sets the size of the host window.
|
| void SetHostSize(const gfx::Size& size_in_pixel);
|
| @@ -130,7 +130,7 @@
|
|
|
| // Handles a gesture event. Returns true if handled. Unlike the other
|
| // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture
|
| - // events are dispatched from GestureRecognizer instead of WindowTreeHost.
|
| + // events are dispatched from GestureRecognizer instead of RootWindowHost.
|
| void DispatchGestureEvent(ui::GestureEvent* event);
|
|
|
| // Invoked when |window| is being destroyed.
|
| @@ -159,7 +159,7 @@
|
| void OnKeyboardMappingChanged();
|
|
|
| // The system windowing system has sent a request that we close our window.
|
| - void OnWindowTreeHostCloseRequested();
|
| + void OnRootWindowHostCloseRequested();
|
|
|
| // Add/remove observer. There is no need to remove the observer if
|
| // the root window is being deleted. In particular, you SHOULD NOT remove
|
| @@ -208,7 +208,7 @@
|
| };
|
|
|
| // Updates the event with the appropriate transform for the device scale
|
| - // factor. The WindowTreeHostDelegate dispatches events in the physical pixel
|
| + // factor. The RootWindowHostDelegate dispatches events in the physical pixel
|
| // coordinate. But the event processing from RootWindow onwards happen in
|
| // device-independent pixel coordinate. So it is necessary to update the event
|
| // received from the host.
|
| @@ -264,7 +264,7 @@
|
| virtual void OnLayerAnimationAborted(
|
| ui::LayerAnimationSequence* animation) OVERRIDE;
|
|
|
| - // Overridden from aura::WindowTreeHostDelegate:
|
| + // Overridden from aura::RootWindowHostDelegate:
|
| virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE;
|
| virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE;
|
| virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE;
|
| @@ -286,7 +286,7 @@
|
| // dispatch held and newly incoming mouse and touch events, typically when an
|
| // event other than one of these needs dispatching or a matching
|
| // ReleaseMouseMoves()/ReleaseTouchMoves() is called. NOTE: because these
|
| - // methods dispatch events from WindowTreeHost the coordinates are in terms of
|
| + // methods dispatch events from RootWindowHost the coordinates are in terms of
|
| // the root.
|
| ui::EventDispatchDetails DispatchMouseEventImpl(ui::MouseEvent* event)
|
| WARN_UNUSED_RESULT;
|
| @@ -312,7 +312,7 @@
|
| // TODO(beng): evaluate the ideal ownership model.
|
| scoped_ptr<Window> window_;
|
|
|
| - scoped_ptr<WindowTreeHost> host_;
|
| + scoped_ptr<RootWindowHost> host_;
|
|
|
| // Touch ids that are currently down.
|
| uint32 touch_ids_down_;
|
|
|