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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 190 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
191 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; | 191 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; |
192 virtual void RenderViewGone(base::TerminationStatus status, | 192 virtual void RenderViewGone(base::TerminationStatus status, |
193 int error_code) OVERRIDE; | 193 int error_code) OVERRIDE; |
194 // called by TabContents before DestroyWindow | 194 // called by TabContents before DestroyWindow |
195 virtual void WillWmDestroy() OVERRIDE; | 195 virtual void WillWmDestroy() OVERRIDE; |
196 virtual void Destroy() OVERRIDE; | 196 virtual void Destroy() OVERRIDE; |
197 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 197 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
198 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 198 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
199 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 199 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
200 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 200 virtual void ProcessTouchAck(bool processed) OVERRIDE; |
201 bool processed) OVERRIDE; | |
202 virtual void SetHasHorizontalScrollbar( | 201 virtual void SetHasHorizontalScrollbar( |
203 bool has_horizontal_scrollbar) OVERRIDE; | 202 bool has_horizontal_scrollbar) OVERRIDE; |
204 virtual void SetScrollOffsetPinning( | 203 virtual void SetScrollOffsetPinning( |
205 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 204 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
206 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 205 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
207 virtual void AcceleratedSurfaceBuffersSwapped( | 206 virtual void AcceleratedSurfaceBuffersSwapped( |
208 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 207 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
209 int gpu_host_id) OVERRIDE; | 208 int gpu_host_id) OVERRIDE; |
210 virtual void AcceleratedSurfacePostSubBuffer( | 209 virtual void AcceleratedSurfacePostSubBuffer( |
211 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 210 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); | 361 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); |
363 LRESULT OnReconvertString(RECONVERTSTRING* reconv); | 362 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
364 | 363 |
365 // Displays the on screen keyboard for editable fields. | 364 // Displays the on screen keyboard for editable fields. |
366 void DisplayOnScreenKeyboardIfNeeded(); | 365 void DisplayOnScreenKeyboardIfNeeded(); |
367 | 366 |
368 // Invoked in a delayed task to reset the fact that we are in the context of | 367 // Invoked in a delayed task to reset the fact that we are in the context of |
369 // a WM_POINTERDOWN message. | 368 // a WM_POINTERDOWN message. |
370 void ResetPointerDownContext(); | 369 void ResetPointerDownContext(); |
371 | 370 |
372 // Switches between raw-touches mode and gesture mode. Currently touch mode | |
373 // will only take effect when kEnableTouchEvents is in effect. | |
374 void UpdateDesiredTouchMode(bool touch); | |
375 | |
376 // Set window to receive gestures. | |
377 void SetToGestureMode(); | |
378 | |
379 // Set window to raw touch events. Returns whether registering was successful. | |
380 bool SetToTouchMode(); | |
381 | |
382 // The associated Model. While |this| is being Destroyed, | 371 // The associated Model. While |this| is being Destroyed, |
383 // |render_widget_host_| is NULL and the Windows message loop is run one last | 372 // |render_widget_host_| is NULL and the Windows message loop is run one last |
384 // time. Message handlers must check for a NULL |render_widget_host_|. | 373 // time. Message handlers must check for a NULL |render_widget_host_|. |
385 RenderWidgetHostImpl* render_widget_host_; | 374 RenderWidgetHostImpl* render_widget_host_; |
386 | 375 |
387 // When we are doing accelerated compositing | 376 // When we are doing accelerated compositing |
388 HWND compositor_host_window_; | 377 HWND compositor_host_window_; |
389 | 378 |
390 // Presents a texture received from another process to the compositing | 379 // Presents a texture received from another process to the compositing |
391 // window. | 380 // window. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 539 |
551 // Set to true if the focus is currently on an editable field on the page. | 540 // Set to true if the focus is currently on an editable field on the page. |
552 bool focus_on_editable_field_; | 541 bool focus_on_editable_field_; |
553 | 542 |
554 // Set to true if we received a focus change after a WM_POINTERDOWN message. | 543 // Set to true if we received a focus change after a WM_POINTERDOWN message. |
555 bool received_focus_change_after_pointer_down_; | 544 bool received_focus_change_after_pointer_down_; |
556 | 545 |
557 // Region in which the view will be transparent to clicks. | 546 // Region in which the view will be transparent to clicks. |
558 gfx::ScopedSkRegion transparent_region_; | 547 gfx::ScopedSkRegion transparent_region_; |
559 | 548 |
560 // Are touch events currently enabled? | |
561 bool touch_events_enabled_; | |
562 | |
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 549 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
564 }; | 550 }; |
565 | 551 |
566 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 552 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |