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

Side by Side Diff: win8/metro_driver/chrome_app_view_ash.h

Issue 73063002: Adds swipe edge gesture to metro Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 winui::Core::ICharacterReceivedEventArgs* args); 114 winui::Core::ICharacterReceivedEventArgs* args);
115 115
116 HRESULT OnWindowActivated(winui::Core::ICoreWindow* sender, 116 HRESULT OnWindowActivated(winui::Core::ICoreWindow* sender,
117 winui::Core::IWindowActivatedEventArgs* args); 117 winui::Core::IWindowActivatedEventArgs* args);
118 118
119 // Helper to handle search requests received via the search charm in ASH. 119 // Helper to handle search requests received via the search charm in ASH.
120 HRESULT HandleSearchRequest(winapp::Activation::IActivatedEventArgs* args); 120 HRESULT HandleSearchRequest(winapp::Activation::IActivatedEventArgs* args);
121 // Helper to handle http/https url requests in ASH. 121 // Helper to handle http/https url requests in ASH.
122 HRESULT HandleProtocolRequest(winapp::Activation::IActivatedEventArgs* args); 122 HRESULT HandleProtocolRequest(winapp::Activation::IActivatedEventArgs* args);
123 123
124 HRESULT OnEdgeGestureCompleted(winui::Input::IEdgeGesture* gesture,
125 winui::Input::IEdgeGestureEventArgs* args);
126
124 // Tasks posted to the UI thread to initiate the search/url navigation 127 // Tasks posted to the UI thread to initiate the search/url navigation
125 // requests. 128 // requests.
126 void OnSearchRequest(const string16& search_string); 129 void OnSearchRequest(const string16& search_string);
127 void OnNavigateToUrl(const string16& url); 130 void OnNavigateToUrl(const string16& url);
128 131
129 HRESULT OnSizeChanged(winui::Core::ICoreWindow* sender, 132 HRESULT OnSizeChanged(winui::Core::ICoreWindow* sender,
130 winui::Core::IWindowSizeChangedEventArgs* args); 133 winui::Core::IWindowSizeChangedEventArgs* args);
131 134
132 mswr::ComPtr<winui::Core::ICoreWindow> window_; 135 mswr::ComPtr<winui::Core::ICoreWindow> window_;
133 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_; 136 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_;
134 EventRegistrationToken activated_token_; 137 EventRegistrationToken activated_token_;
135 EventRegistrationToken pointermoved_token_; 138 EventRegistrationToken pointermoved_token_;
136 EventRegistrationToken pointerpressed_token_; 139 EventRegistrationToken pointerpressed_token_;
137 EventRegistrationToken pointerreleased_token_; 140 EventRegistrationToken pointerreleased_token_;
138 EventRegistrationToken wheel_token_; 141 EventRegistrationToken wheel_token_;
139 EventRegistrationToken keydown_token_; 142 EventRegistrationToken keydown_token_;
140 EventRegistrationToken keyup_token_; 143 EventRegistrationToken keyup_token_;
141 EventRegistrationToken character_received_token_; 144 EventRegistrationToken character_received_token_;
142 EventRegistrationToken accel_keydown_token_; 145 EventRegistrationToken accel_keydown_token_;
143 EventRegistrationToken accel_keyup_token_; 146 EventRegistrationToken accel_keyup_token_;
144 EventRegistrationToken window_activated_token_; 147 EventRegistrationToken window_activated_token_;
145 EventRegistrationToken sizechange_token_; 148 EventRegistrationToken sizechange_token_;
149 EventRegistrationToken edgeevent_token_;
146 150
147 // Keep state about which button is currently down, if any, as PointerMoved 151 // Keep state about which button is currently down, if any, as PointerMoved
148 // events do not contain that state, but Ash's MouseEvents need it. 152 // events do not contain that state, but Ash's MouseEvents need it.
149 ui::EventFlags mouse_down_flags_; 153 ui::EventFlags mouse_down_flags_;
150 154
151 // Set the D3D swap chain and nothing else. 155 // Set the D3D swap chain and nothing else.
152 metro_driver::Direct3DHelper direct3d_helper_; 156 metro_driver::Direct3DHelper direct3d_helper_;
153 157
154 // The channel to Chrome, in particular to the MetroViewerProcessHost. 158 // The channel to Chrome, in particular to the MetroViewerProcessHost.
155 IPC::ChannelProxy* ui_channel_; 159 IPC::ChannelProxy* ui_channel_;
156 160
157 // The actual window behind the view surface. 161 // The actual window behind the view surface.
158 HWND core_window_hwnd_; 162 HWND core_window_hwnd_;
159 163
160 // UI message loop to allow message passing into this thread. 164 // UI message loop to allow message passing into this thread.
161 base::MessageLoop ui_loop_; 165 base::MessageLoop ui_loop_;
162 }; 166 };
163 167
164 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 168 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698