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

Side by Side Diff: ui/aura/remote_root_window_host_win.h

Issue 11194044: Add keyboard events to metro aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/aura/root_window_host.h" 11 #include "ui/aura/root_window_host.h"
12 #include "ui/base/win/window_impl.h" 12 #include "ui/base/win/window_impl.h"
13 13
14 namespace ui { 14 namespace ui {
15 class ViewProp; 15 class ViewProp;
16 } 16 }
17 17
18 namespace aura { 18 namespace aura {
19 // RootWindowHost implementaton that receives events from a different process. 19 // RootWindowHost implementaton that receives events from a different process.
20 class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost { 20 class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost {
21 public: 21 public:
22 static RemoteRootWindowHostWin* Instance(); 22 static RemoteRootWindowHostWin* Instance();
23 static RemoteRootWindowHostWin* Create(const gfx::Rect& bounds); 23 static RemoteRootWindowHostWin* Create(const gfx::Rect& bounds);
24 24
25 void OnMouseMoved(int x, int y, int extra); 25 void OnMouseMoved(int32 x, int32 y, int32 extra);
26 void OnMouseClick(int x, int y, int extra); 26 void OnMouseClick(int32 x, int32 y, int32 extra);
27 void OnKeyDown(uint32 vkey, uint32 repeat_count, uint32 scan_code);
28 void OnKeyUp(uint32 vkey, uint32 repeat_count, uint32 scan_code);
27 29
28 private: 30 private:
29 RemoteRootWindowHostWin(const gfx::Rect& bounds); 31 RemoteRootWindowHostWin(const gfx::Rect& bounds);
30 virtual ~RemoteRootWindowHostWin(); 32 virtual ~RemoteRootWindowHostWin();
31 33
32 // RootWindowHost overrides: 34 // RootWindowHost overrides:
33 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; 35 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE;
34 virtual RootWindow* GetRootWindow() OVERRIDE; 36 virtual RootWindow* GetRootWindow() OVERRIDE;
35 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 37 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
36 virtual void Show() OVERRIDE; 38 virtual void Show() OVERRIDE;
(...skipping 19 matching lines...) Expand all
56 58
57 RootWindowHostDelegate* delegate_; 59 RootWindowHostDelegate* delegate_;
58 scoped_ptr<ui::ViewProp> prop_; 60 scoped_ptr<ui::ViewProp> prop_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); 62 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin);
61 }; 63 };
62 64
63 } // namespace aura 65 } // namespace aura
64 66
65 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 67 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698