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

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

Issue 10939006: Make cursors work on win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_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/widget/desktop_root_window_host.h" 9 #include "ui/views/widget/desktop_root_window_host.h"
10 #include "ui/views/win/hwnd_message_handler_delegate.h" 10 #include "ui/views/win/hwnd_message_handler_delegate.h"
11 11
12 namespace aura { 12 namespace aura {
13 class DesktopActivationClient; 13 class DesktopActivationClient;
14 class DesktopCursorClient;
14 class DesktopDispatcherClient; 15 class DesktopDispatcherClient;
15 class FocusManager; 16 class FocusManager;
17 namespace client {
18 class ScreenPositionClient;
19 }
16 } 20 }
17 21
18 namespace views { 22 namespace views {
19 class DesktopCaptureClient; 23 class DesktopCaptureClient;
20 class HWNDMessageHandler; 24 class HWNDMessageHandler;
21 25
22 class DesktopRootWindowHostWin : public DesktopRootWindowHost, 26 class DesktopRootWindowHostWin : public DesktopRootWindowHost,
23 public aura::RootWindowHost, 27 public aura::RootWindowHost,
24 public HWNDMessageHandlerDelegate { 28 public HWNDMessageHandlerDelegate {
25 public: 29 public:
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_; 171 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_;
168 scoped_ptr<aura::FocusManager> focus_manager_; 172 scoped_ptr<aura::FocusManager> focus_manager_;
169 173
170 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura 174 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura
171 // instead of providing this route back to Widget. 175 // instead of providing this route back to Widget.
172 internal::NativeWidgetDelegate* native_widget_delegate_; 176 internal::NativeWidgetDelegate* native_widget_delegate_;
173 177
174 aura::RootWindowHostDelegate* root_window_host_delegate_; 178 aura::RootWindowHostDelegate* root_window_host_delegate_;
175 aura::Window* content_window_; 179 aura::Window* content_window_;
176 180
181 // In some cases, we set a screen position client on |root_window_|. If we
182 // do, we're responsible for the lifetime.
183 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
184
185 // A simple cursor client which just forwards events to the RootWindow.
186 scoped_ptr<aura::DesktopCursorClient> cursor_client_;
187
177 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 188 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin);
178 }; 189 };
179 190
180 } // namespace views 191 } // namespace views
181 192
182 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 193 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698