| OLD | NEW |
| 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 Loading... |
| 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::PlatformBitmap* output) OVERRIDE; | 202 skia::PlatformBitmap* 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 Loading... |
| 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 | |
| 414 // Set window to receive gestures. | |
| 415 void SetToGestureMode(); | |
| 416 | |
| 417 // Set window to raw touch events. Returns whether registering was successful. | |
| 418 bool SetToTouchMode(); | |
| 419 | 412 |
| 420 // Configures the enable/disable state of |ime_input_| to match with the | 413 // Configures the enable/disable state of |ime_input_| to match with the |
| 421 // current |text_input_type_|. | 414 // current |text_input_type_|. |
| 422 void UpdateIMEState(); | 415 void UpdateIMEState(); |
| 423 | 416 |
| 424 // The associated Model. While |this| is being Destroyed, | 417 // The associated Model. While |this| is being Destroyed, |
| 425 // |render_widget_host_| is NULL and the Windows message loop is run one last | 418 // |render_widget_host_| is NULL and the Windows message loop is run one last |
| 426 // time. Message handlers must check for a NULL |render_widget_host_|. | 419 // time. Message handlers must check for a NULL |render_widget_host_|. |
| 427 RenderWidgetHostImpl* render_widget_host_; | 420 RenderWidgetHostImpl* render_widget_host_; |
| 428 | 421 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 bool touch_events_enabled_; | 571 bool touch_events_enabled_; |
| 579 | 572 |
| 580 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 573 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
| 581 | 574 |
| 582 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 575 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 583 }; | 576 }; |
| 584 | 577 |
| 585 } // namespace content | 578 } // namespace content |
| 586 | 579 |
| 587 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |