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

Side by Side Diff: ui/aura/dispatcher_win.cc

Issue 9808010: Keep the mouse cursor within desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 9 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "ui/aura/env.h"
9 #include "ui/aura/root_window.h"
10 8
11 namespace aura { 9 namespace aura {
12 10
13 class DispatcherWin : public Dispatcher { 11 class DispatcherWin : public MessageLoop::Dispatcher {
14 public: 12 public:
15 DispatcherWin() {} 13 DispatcherWin() {}
16 virtual ~DispatcherWin() {} 14 virtual ~DispatcherWin() {}
17 15
18 // Overridden from MessageLoop::Dispatcher: 16 // Overridden from MessageLoop::Dispatcher:
19 virtual bool Dispatch(const MSG& msg) OVERRIDE; 17 virtual bool Dispatch(const MSG& msg) OVERRIDE;
20 18
21 private: 19 private:
22 DISALLOW_COPY_AND_ASSIGN(DispatcherWin); 20 DISALLOW_COPY_AND_ASSIGN(DispatcherWin);
23 }; 21 };
24 22
25 bool DispatcherWin::Dispatch(const MSG& msg) { 23 bool DispatcherWin::Dispatch(const MSG& msg) {
26 TranslateMessage(&msg); 24 TranslateMessage(&msg);
27 DispatchMessage(&msg); 25 DispatchMessage(&msg);
28 return true; 26 return true;
29 } 27 }
30 28
31 Dispatcher* CreateDispatcher() { 29 MessageLoop::Dispatcher* CreateDispatcher() {
32 return new DispatcherWin; 30 return new DispatcherWin;
33 } 31 }
34 32
35 } // namespace aura 33 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/dispatcher_linux.cc ('k') | ui/aura/env.h » ('j') | ui/aura/env.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698