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

Side by Side Diff: chrome/browser/metro_viewer/metro_viewer_process_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ 5 #ifndef CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ 6 #define CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // IPC::Sender implementation. 26 // IPC::Sender implementation.
27 virtual bool Send(IPC::Message* msg) OVERRIDE; 27 virtual bool Send(IPC::Message* msg) OVERRIDE;
28 28
29 // IPC::Listener implementation. 29 // IPC::Listener implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 virtual void OnChannelError() OVERRIDE; 31 virtual void OnChannelError() OVERRIDE;
32 32
33 private: 33 private:
34 void OnSetTargetSurface(gfx::NativeViewId target_surface); 34 void OnSetTargetSurface(gfx::NativeViewId target_surface);
35 void OnMouseEvent(int msg, WPARAM w_param, LPARAM l_param); 35 void OnMouseEvent(int32 msg, WPARAM w_param, LPARAM l_param);
scottmg 2012/10/18 00:53:19 is it normal to use explicit sizes for ints in mes
cpu_(ooo_6.6-7.5) 2012/10/18 20:15:26 Any integer type is fair game. The key ones don't
36 void OnMouseMoved(int x, int y, int modifiers); 36 void OnMouseMoved(int32 x, int32 y, int32 modifiers);
37 void OnMouseButton(int x, int y, int modifiers); 37 void OnMouseButton(int32 x, int32 y, int32 modifiers);
38 void OnKeyDown(uint32 vkey, uint32 repeat_count, uint32 scan_code);
39 void OnKeyUp(uint32 vkey, uint32 repeat_count, uint32 scan_code);
38 40
39 scoped_ptr<IPC::ChannelProxy> channel_; 41 scoped_ptr<IPC::ChannelProxy> channel_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost); 43 DISALLOW_COPY_AND_ASSIGN(MetroViewerProcessHost);
42 }; 44 };
43 45
44 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_ 46 #endif // CHROME_BROWSER_METRO_VIEWER_METRO_VIEWER_PROCESS_HOST_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metro_viewer/metro_viewer_process_host_win.cc » ('j') | win8/metro_driver/chrome_app_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698