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

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

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed bot failure: cast_shell_linux Created 5 years, 6 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
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_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "ui/aura/window_tree_host.h" 8 #include "ui/aura/window_tree_host.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" 10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.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,
36 public HWNDMessageHandlerDelegate { 35 public HWNDMessageHandlerDelegate {
37 public: 36 public:
38 DesktopWindowTreeHostWin( 37 DesktopWindowTreeHostWin(
39 internal::NativeWidgetDelegate* native_widget_delegate, 38 internal::NativeWidgetDelegate* native_widget_delegate,
40 DesktopNativeWidgetAura* desktop_native_widget_aura); 39 DesktopNativeWidgetAura* desktop_native_widget_aura);
41 ~DesktopWindowTreeHostWin() override; 40 ~DesktopWindowTreeHostWin() override;
42 41
43 // A way of converting an HWND into a content window. 42 // A way of converting an HWND into a content window.
44 static aura::Window* GetContentWindowForHWND(HWND hwnd); 43 static aura::Window* GetContentWindowForHWND(HWND hwnd);
45 44
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void HideImpl() override; 111 void HideImpl() override;
113 gfx::Rect GetBounds() const override; 112 gfx::Rect GetBounds() const override;
114 void SetBounds(const gfx::Rect& bounds) override; 113 void SetBounds(const gfx::Rect& bounds) override;
115 gfx::Point GetLocationOnNativeScreen() const override; 114 gfx::Point GetLocationOnNativeScreen() const override;
116 void SetCapture() override; 115 void SetCapture() override;
117 void ReleaseCapture() override; 116 void ReleaseCapture() override;
118 void SetCursorNative(gfx::NativeCursor cursor) override; 117 void SetCursorNative(gfx::NativeCursor cursor) override;
119 void OnCursorVisibilityChangedNative(bool show) override; 118 void OnCursorVisibilityChangedNative(bool show) override;
120 void MoveCursorToNative(const gfx::Point& location) override; 119 void MoveCursorToNative(const gfx::Point& location) override;
121 120
122 // Overridden frm ui::EventSource
123 ui::EventProcessor* GetEventProcessor() override;
124
125 // Overridden from aura::client::AnimationHost 121 // Overridden from aura::client::AnimationHost
126 void SetHostTransitionOffsets( 122 void SetHostTransitionOffsets(
127 const gfx::Vector2d& top_left_delta, 123 const gfx::Vector2d& top_left_delta,
128 const gfx::Vector2d& bottom_right_delta) override; 124 const gfx::Vector2d& bottom_right_delta) override;
129 void OnWindowHidingAnimationCompleted() override; 125 void OnWindowHidingAnimationCompleted() override;
130 126
131 // Overridden from HWNDMessageHandlerDelegate: 127 // Overridden from HWNDMessageHandlerDelegate:
132 bool IsWidgetWindow() const override; 128 bool IsWidgetWindow() const override;
133 bool IsUsingCustomFrame() const override; 129 bool IsUsingCustomFrame() const override;
134 void SchedulePaint() override; 130 void SchedulePaint() override;
135 void EnableInactiveRendering() override; 131 void EnableInactiveRendering() override;
136 bool IsInactiveRenderingDisabled() override; 132 bool IsInactiveRenderingDisabled() override;
137 bool CanResize() const override; 133 bool CanResize() const override;
138 bool CanMaximize() const override; 134 bool CanMaximize() const override;
139 bool CanMinimize() const override; 135 bool CanMinimize() const override;
140 bool CanActivate() const override; 136 bool CanActivate() const override;
141 bool WidgetSizeIsClientSize() const override; 137 bool WidgetSizeIsClientSize() const override;
142 bool IsModal() const override; 138 bool IsModal() const override;
143 int GetInitialShowState() const override; 139 int GetInitialShowState() const override;
144 bool WillProcessWorkAreaChange() const override; 140 bool WillProcessWorkAreaChange() const override;
145 int GetNonClientComponent(const gfx::Point& point) const override; 141 int GetNonClientComponent(const gfx::Point& point) const override;
146 void GetWindowMask(const gfx::Size& size, gfx::Path* path) override; 142 void GetWindowMask(const gfx::Size& size, gfx::Path* path) override;
147 bool GetClientAreaInsets(gfx::Insets* insets) const override; 143 bool GetClientAreaInsets(gfx::Insets* insets) const override;
148 void GetMinMaxSize(gfx::Size* min_size, gfx::Size* max_size) const override; 144 void GetMinMaxSize(gfx::Size* min_size, gfx::Size* max_size) const override;
149 gfx::Size GetRootViewSize() const override; 145 gfx::Size GetRootViewSize() const override;
150 void ResetWindowControls() override; 146 void ResetWindowControls() override;
151 gfx::NativeViewAccessible GetNativeViewAccessible() override; 147 gfx::NativeViewAccessible GetNativeViewAccessible() override;
152 bool ShouldHandleSystemCommands() const override; 148 bool ShouldHandleSystemCommands() const override;
153 InputMethod* GetInputMethod() override;
154 void HandleAppDeactivated() override; 149 void HandleAppDeactivated() override;
155 void HandleActivationChanged(bool active) override; 150 void HandleActivationChanged(bool active) override;
156 bool HandleAppCommand(short command) override; 151 bool HandleAppCommand(short command) override;
157 void HandleCancelMode() override; 152 void HandleCancelMode() override;
158 void HandleCaptureLost() override; 153 void HandleCaptureLost() override;
159 void HandleClose() override; 154 void HandleClose() override;
160 bool HandleCommand(int command) override; 155 bool HandleCommand(int command) override;
161 void HandleAccelerator(const ui::Accelerator& accelerator) override; 156 void HandleAccelerator(const ui::Accelerator& accelerator) override;
162 void HandleCreate() override; 157 void HandleCreate() override;
163 void HandleDestroying() override; 158 void HandleDestroying() override;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 static bool is_cursor_visible_; 253 static bool is_cursor_visible_;
259 254
260 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 255 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
261 256
262 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 257 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
263 }; 258 };
264 259
265 } // namespace views 260 } // namespace views
266 261
267 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 262 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698