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

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

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/root_window_host.h" 8 #include "ui/aura/root_window_host.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" 10 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
11 #include "ui/views/win/hwnd_message_handler_delegate.h" 11 #include "ui/views/win/hwnd_message_handler_delegate.h"
12 12
13 namespace aura { 13 namespace aura {
14 class FocusManager;
15 namespace client { 14 namespace client {
16 class DefaultCaptureClient; 15 class DefaultCaptureClient;
16 class FocusClient;
17 class ScreenPositionClient; 17 class ScreenPositionClient;
18 } 18 }
19 } 19 }
20 20
21 namespace views { 21 namespace views {
22 class DesktopActivationClient; 22 class DesktopActivationClient;
23 class DesktopCursorClient; 23 class DesktopCursorClient;
24 class DesktopDispatcherClient; 24 class DesktopDispatcherClient;
25 class HWNDMessageHandler; 25 class HWNDMessageHandler;
26 namespace corewm { 26 namespace corewm {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const Widget* GetWidget() const; 203 const Widget* GetWidget() const;
204 HWND GetHWND() const; 204 HWND GetHWND() const;
205 205
206 private: 206 private:
207 // We are owned by the RootWindow, but we have to have a back pointer to it. 207 // We are owned by the RootWindow, but we have to have a back pointer to it.
208 aura::RootWindow* root_window_; 208 aura::RootWindow* root_window_;
209 209
210 scoped_ptr<HWNDMessageHandler> message_handler_; 210 scoped_ptr<HWNDMessageHandler> message_handler_;
211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; 211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
212 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; 212 scoped_ptr<DesktopDispatcherClient> dispatcher_client_;
213 scoped_ptr<aura::FocusManager> focus_manager_; 213 scoped_ptr<aura::client::FocusClient> focus_client_;
214 // Depends on focus_manager_. 214 // Depends on focus_manager_.
215 scoped_ptr<DesktopActivationClient> activation_client_; 215 scoped_ptr<DesktopActivationClient> activation_client_;
216 scoped_ptr<corewm::InputMethodEventFilter> input_method_filter_; 216 scoped_ptr<corewm::InputMethodEventFilter> input_method_filter_;
217 217
218 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura 218 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura
219 // instead of providing this route back to Widget. 219 // instead of providing this route back to Widget.
220 internal::NativeWidgetDelegate* native_widget_delegate_; 220 internal::NativeWidgetDelegate* native_widget_delegate_;
221 221
222 DesktopNativeWidgetAura* desktop_native_widget_aura_; 222 DesktopNativeWidgetAura* desktop_native_widget_aura_;
223 223
224 aura::RootWindowHostDelegate* root_window_host_delegate_; 224 aura::RootWindowHostDelegate* root_window_host_delegate_;
225 aura::Window* content_window_; 225 aura::Window* content_window_;
226 226
227 // In some cases, we set a screen position client on |root_window_|. If we 227 // In some cases, we set a screen position client on |root_window_|. If we
228 // do, we're responsible for the lifetime. 228 // do, we're responsible for the lifetime.
229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; 229 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
230 230
231 // A simple cursor client which just forwards events to the RootWindow. 231 // A simple cursor client which just forwards events to the RootWindow.
232 scoped_ptr<DesktopCursorClient> cursor_client_; 232 scoped_ptr<DesktopCursorClient> cursor_client_;
233 233
234 // The RootWindow's CompoundEventFilter. 234 // The RootWindow's CompoundEventFilter.
235 views::corewm::CompoundEventFilter* root_window_event_filter_; 235 views::corewm::CompoundEventFilter* root_window_event_filter_;
236 236
237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin);
238 }; 238 };
239 239
240 } // namespace views 240 } // namespace views
241 241
242 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 242 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698