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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 11028144: touch: Cleanup touch-event mode switching on windows. (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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual void WillWmDestroy() OVERRIDE; 194 virtual void WillWmDestroy() OVERRIDE;
195 virtual void Destroy() OVERRIDE; 195 virtual void Destroy() OVERRIDE;
196 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 196 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
197 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 197 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
198 virtual void CopyFromCompositingSurface( 198 virtual void CopyFromCompositingSurface(
199 const gfx::Rect& src_subrect, 199 const gfx::Rect& src_subrect,
200 const gfx::Size& dst_size, 200 const gfx::Size& dst_size,
201 const base::Callback<void(bool)>& callback, 201 const base::Callback<void(bool)>& callback,
202 skia::PlatformCanvas* output) OVERRIDE; 202 skia::PlatformCanvas* output) OVERRIDE;
203 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 203 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
204 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 204 virtual void ProcessTouchAck(bool processed) OVERRIDE;
205 bool processed) OVERRIDE;
206 virtual void SetHasHorizontalScrollbar( 205 virtual void SetHasHorizontalScrollbar(
207 bool has_horizontal_scrollbar) OVERRIDE; 206 bool has_horizontal_scrollbar) OVERRIDE;
208 virtual void SetScrollOffsetPinning( 207 virtual void SetScrollOffsetPinning(
209 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 208 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
210 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 209 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
211 virtual void AcceleratedSurfaceBuffersSwapped( 210 virtual void AcceleratedSurfaceBuffersSwapped(
212 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 211 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
213 int gpu_host_id) OVERRIDE; 212 int gpu_host_id) OVERRIDE;
214 virtual void AcceleratedSurfacePostSubBuffer( 213 virtual void AcceleratedSurfacePostSubBuffer(
215 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 214 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 LRESULT OnReconvertString(RECONVERTSTRING* reconv); 399 LRESULT OnReconvertString(RECONVERTSTRING* reconv);
401 LRESULT OnQueryCharPosition(IMECHARPOSITION* position); 400 LRESULT OnQueryCharPosition(IMECHARPOSITION* position);
402 401
403 // Displays the on screen keyboard for editable fields. 402 // Displays the on screen keyboard for editable fields.
404 void DisplayOnScreenKeyboardIfNeeded(); 403 void DisplayOnScreenKeyboardIfNeeded();
405 404
406 // Invoked in a delayed task to reset the fact that we are in the context of 405 // Invoked in a delayed task to reset the fact that we are in the context of
407 // a WM_POINTERDOWN message. 406 // a WM_POINTERDOWN message.
408 void ResetPointerDownContext(); 407 void ResetPointerDownContext();
409 408
410 // Switches between raw-touches mode and gesture mode. Currently touch mode 409 // Sets the appropriate mode for raw-touches or gestures. Currently touch mode
411 // will only take effect when kEnableTouchEvents is in effect. 410 // will only take effect when kEnableTouchEvents is in effect (on Win7+).
412 void UpdateDesiredTouchMode(bool touch); 411 void UpdateDesiredTouchMode();
413 412
414 // Set window to receive gestures. 413 // Set window to receive gestures.
415 void SetToGestureMode(); 414 void SetToGestureMode();
416 415
417 // Set window to raw touch events. Returns whether registering was successful. 416 // Set window to raw touch events. Returns whether registering was successful.
418 bool SetToTouchMode(); 417 bool SetToTouchMode();
419 418
420 // Configures the enable/disable state of |ime_input_| to match with the 419 // Configures the enable/disable state of |ime_input_| to match with the
421 // current |text_input_type_|. 420 // current |text_input_type_|.
422 void UpdateIMEState(); 421 void UpdateIMEState();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 bool touch_events_enabled_; 577 bool touch_events_enabled_;
579 578
580 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 579 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
581 580
582 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 581 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
583 }; 582 };
584 583
585 } // namespace content 584 } // namespace content
586 585
587 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 586 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698