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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.h

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "ui/aura/client/animation_host.h" 8 #include "ui/aura/client/animation_host.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 14 matching lines...) Expand all
25 class HWNDMessageHandler; 25 class HWNDMessageHandler;
26 26
27 namespace corewm { 27 namespace corewm {
28 class TooltipWin; 28 class TooltipWin;
29 } 29 }
30 30
31 class VIEWS_EXPORT DesktopWindowTreeHostWin 31 class VIEWS_EXPORT DesktopWindowTreeHostWin
32 : public DesktopWindowTreeHost, 32 : public DesktopWindowTreeHost,
33 public aura::client::AnimationHost, 33 public aura::client::AnimationHost,
34 public aura::WindowTreeHost, 34 public aura::WindowTreeHost,
35 public ui::EventSource,
35 public HWNDMessageHandlerDelegate { 36 public HWNDMessageHandlerDelegate {
36 public: 37 public:
37 DesktopWindowTreeHostWin( 38 DesktopWindowTreeHostWin(
38 internal::NativeWidgetDelegate* native_widget_delegate, 39 internal::NativeWidgetDelegate* native_widget_delegate,
39 DesktopNativeWidgetAura* desktop_native_widget_aura); 40 DesktopNativeWidgetAura* desktop_native_widget_aura);
40 virtual ~DesktopWindowTreeHostWin(); 41 virtual ~DesktopWindowTreeHostWin();
41 42
42 // A way of converting an HWND into a content window. 43 // A way of converting an HWND into a content window.
43 static aura::Window* GetContentWindowForHWND(HWND hwnd); 44 static aura::Window* GetContentWindowForHWND(HWND hwnd);
44 45
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 121 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
121 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 122 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
122 virtual bool ConfineCursorToRootWindow() OVERRIDE; 123 virtual bool ConfineCursorToRootWindow() OVERRIDE;
123 virtual void UnConfineCursor() OVERRIDE; 124 virtual void UnConfineCursor() OVERRIDE;
124 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; 125 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE;
125 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 126 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
126 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 127 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
127 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 128 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
128 virtual void PrepareForShutdown() OVERRIDE; 129 virtual void PrepareForShutdown() OVERRIDE;
129 130
131 // Overridden frm ui::EventSource
132 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
133
130 // Overridden from aura::client::AnimationHost 134 // Overridden from aura::client::AnimationHost
131 virtual void SetHostTransitionOffsets( 135 virtual void SetHostTransitionOffsets(
132 const gfx::Vector2d& top_left_delta, 136 const gfx::Vector2d& top_left_delta,
133 const gfx::Vector2d& bottom_right_delta) OVERRIDE; 137 const gfx::Vector2d& bottom_right_delta) OVERRIDE;
134 virtual void OnWindowHidingAnimationCompleted() OVERRIDE; 138 virtual void OnWindowHidingAnimationCompleted() OVERRIDE;
135 139
136 // Overridden from HWNDMessageHandlerDelegate: 140 // Overridden from HWNDMessageHandlerDelegate:
137 virtual bool IsWidgetWindow() const OVERRIDE; 141 virtual bool IsWidgetWindow() const OVERRIDE;
138 virtual bool IsUsingCustomFrame() const OVERRIDE; 142 virtual bool IsUsingCustomFrame() const OVERRIDE;
139 virtual void SchedulePaint() OVERRIDE; 143 virtual void SchedulePaint() OVERRIDE;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool is_cursor_visible_; 277 bool is_cursor_visible_;
274 278
275 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 279 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
276 280
277 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 281 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
278 }; 282 };
279 283
280 } // namespace views 284 } // namespace views
281 285
282 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 286 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/input_method_event_filter.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698