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

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

Issue 141953014: Adding support for sending horizonatal mouse wheel information in Chrome ASH on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « ui/metro_viewer/metro_viewer_messages.h ('k') | 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const std::vector<metro_viewer::UnderlineInfo>& underlines) OVERRIDE; 124 const std::vector<metro_viewer::UnderlineInfo>& underlines) OVERRIDE;
125 virtual void OnTextCommitted(const base::string16& text) OVERRIDE; 125 virtual void OnTextCommitted(const base::string16& text) OVERRIDE;
126 126
127 // Convenience for sending a MetroViewerHostMsg_MouseButton with the specified 127 // Convenience for sending a MetroViewerHostMsg_MouseButton with the specified
128 // parameters. 128 // parameters.
129 void SendMouseButton(int x, 129 void SendMouseButton(int x,
130 int y, 130 int y,
131 int extra, 131 int extra,
132 ui::EventType event_type, 132 ui::EventType event_type,
133 uint32 flags, 133 uint32 flags,
134 ui::EventFlags changed_button); 134 ui::EventFlags changed_button,
135 bool is_horizontal_wheel);
135 136
136 // Win8 only generates a mouse press for the initial button that goes down and 137 // Win8 only generates a mouse press for the initial button that goes down and
137 // a release when the last button is released. Any intermediary presses (or 138 // a release when the last button is released. Any intermediary presses (or
138 // releases) do not result in a new press/release event. Instead a move is 139 // releases) do not result in a new press/release event. Instead a move is
139 // generated with the winui::Input::PointerUpdateKind identifying what 140 // generated with the winui::Input::PointerUpdateKind identifying what
140 // changed. This function generates the necessary intermediary events (as 141 // changed. This function generates the necessary intermediary events (as
141 // necessary). 142 // necessary).
142 void GenerateMouseEventFromMoveIfNecessary(const PointerInfoHandler& pointer); 143 void GenerateMouseEventFromMoveIfNecessary(const PointerInfoHandler& pointer);
143 144
144 HRESULT OnActivate(winapp::Core::ICoreApplicationView* view, 145 HRESULT OnActivate(winapp::Core::ICoreApplicationView* view,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 221
221 // UI message loop to allow message passing into this thread. 222 // UI message loop to allow message passing into this thread.
222 base::MessageLoopForUI ui_loop_; 223 base::MessageLoopForUI ui_loop_;
223 224
224 // For IME support. 225 // For IME support.
225 scoped_ptr<metro_driver::InputSource> input_source_; 226 scoped_ptr<metro_driver::InputSource> input_source_;
226 scoped_ptr<metro_driver::TextService> text_service_; 227 scoped_ptr<metro_driver::TextService> text_service_;
227 }; 228 };
228 229
229 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 230 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « ui/metro_viewer/metro_viewer_messages.h ('k') | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698