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

Side by Side Diff: win8/metro_driver/chrome_app_view.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 CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_
6 #define CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_ 6 #define CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_
7 7
8 #include <windows.applicationmodel.core.h> 8 #include <windows.applicationmodel.core.h>
9 #include <windows.ui.core.h> 9 #include <windows.ui.core.h>
10 #include <windows.ui.input.h> 10 #include <windows.ui.input.h>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 HRESULT OnPointerMoved(winui::Core::ICoreWindow* sender, 85 HRESULT OnPointerMoved(winui::Core::ICoreWindow* sender,
86 winui::Core::IPointerEventArgs* args); 86 winui::Core::IPointerEventArgs* args);
87 87
88 HRESULT OnPointerPressed(winui::Core::ICoreWindow* sender, 88 HRESULT OnPointerPressed(winui::Core::ICoreWindow* sender,
89 winui::Core::IPointerEventArgs* args); 89 winui::Core::IPointerEventArgs* args);
90 90
91 HRESULT OnPointerReleased(winui::Core::ICoreWindow* sender, 91 HRESULT OnPointerReleased(winui::Core::ICoreWindow* sender,
92 winui::Core::IPointerEventArgs* args); 92 winui::Core::IPointerEventArgs* args);
93 93
94 HRESULT OnKeyDown(winui::Core::ICoreWindow* sender,
95 winui::Core::IKeyEventArgs* args);
96
97 HRESULT OnKeyUp(winui::Core::ICoreWindow* sender,
98 winui::Core::IKeyEventArgs* args);
99
94 HRESULT OnEdgeGestureCompleted(winui::Input::IEdgeGesture* gesture, 100 HRESULT OnEdgeGestureCompleted(winui::Input::IEdgeGesture* gesture,
95 winui::Input::IEdgeGestureEventArgs* args); 101 winui::Input::IEdgeGestureEventArgs* args);
96 102
97 HRESULT OnShareDataRequested( 103 HRESULT OnShareDataRequested(
98 winapp::DataTransfer::IDataTransferManager* data_transfer_mgr, 104 winapp::DataTransfer::IDataTransferManager* data_transfer_mgr,
99 winapp::DataTransfer::IDataRequestedEventArgs* event_args); 105 winapp::DataTransfer::IDataRequestedEventArgs* event_args);
100 106
101 HRESULT OnInputPaneVisible( 107 HRESULT OnInputPaneVisible(
102 winui::ViewManagement::IInputPane* input_pane, 108 winui::ViewManagement::IInputPane* input_pane,
103 winui::ViewManagement::IInputPaneVisibilityEventArgs* event_args); 109 winui::ViewManagement::IInputPaneVisibilityEventArgs* event_args);
(...skipping 16 matching lines...) Expand all
120 EventRegistrationToken activated_token_; 126 EventRegistrationToken activated_token_;
121 EventRegistrationToken edgeevent_token_; 127 EventRegistrationToken edgeevent_token_;
122 EventRegistrationToken sizechange_token_; 128 EventRegistrationToken sizechange_token_;
123 EventRegistrationToken share_data_requested_token_; 129 EventRegistrationToken share_data_requested_token_;
124 EventRegistrationToken input_pane_visible_token_; 130 EventRegistrationToken input_pane_visible_token_;
125 EventRegistrationToken input_pane_hiding_token_; 131 EventRegistrationToken input_pane_hiding_token_;
126 EventRegistrationToken app_exit_token_; 132 EventRegistrationToken app_exit_token_;
127 EventRegistrationToken pointermoved_token_; 133 EventRegistrationToken pointermoved_token_;
128 EventRegistrationToken pointerpressed_token_; 134 EventRegistrationToken pointerpressed_token_;
129 EventRegistrationToken pointerreleased_token_; 135 EventRegistrationToken pointerreleased_token_;
136 EventRegistrationToken keydown_token_;
137 EventRegistrationToken keyup_token_;
130 138
131 ChromeUrlLaunchHandler url_launch_handler_; 139 ChromeUrlLaunchHandler url_launch_handler_;
132 metro_driver::DevicesHandler devices_handler_; 140 metro_driver::DevicesHandler devices_handler_;
133 SettingsHandler settings_handler_; 141 SettingsHandler settings_handler_;
134 mswr::ComPtr<winui::ViewManagement::IInputPane> input_pane_; 142 mswr::ComPtr<winui::ViewManagement::IInputPane> input_pane_;
135 mswr::ComPtr<winui::ViewManagement::IApplicationViewStatics> app_view_; 143 mswr::ComPtr<winui::ViewManagement::IApplicationViewStatics> app_view_;
136 144
137 bool osk_visible_notification_received_; 145 bool osk_visible_notification_received_;
138 146
139 // map of notification id to the ToastNotificationHandler instance. 147 // map of notification id to the ToastNotificationHandler instance.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // to be initiated from that thread, notably spawning file pickers. 199 // to be initiated from that thread, notably spawning file pickers.
192 base::MessageLoopProxy* appview_msg_loop; 200 base::MessageLoopProxy* appview_msg_loop;
193 winapp::Core::ICoreApplicationExit* app_exit; 201 winapp::Core::ICoreApplicationExit* app_exit;
194 BreakpadExceptionHandler breakpad_exception_handler; 202 BreakpadExceptionHandler breakpad_exception_handler;
195 string16 metro_command_line_switches; 203 string16 metro_command_line_switches;
196 }; 204 };
197 205
198 extern Globals globals; 206 extern Globals globals;
199 207
200 #endif // CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_ 208 #endif // CHROME_BROWSER_UI_METRO_DRIVER_CHROME_APP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698