| 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(bool processed) OVERRIDE; | 200 virtual void ProcessTouchAck(int type, bool processed) OVERRIDE; |
| 201 virtual void SetHasHorizontalScrollbar( | 201 virtual void SetHasHorizontalScrollbar( |
| 202 bool has_horizontal_scrollbar) OVERRIDE; | 202 bool has_horizontal_scrollbar) OVERRIDE; |
| 203 virtual void SetScrollOffsetPinning( | 203 virtual void SetScrollOffsetPinning( |
| 204 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 204 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 205 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 205 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
| 206 virtual void AcceleratedSurfaceBuffersSwapped( | 206 virtual void AcceleratedSurfaceBuffersSwapped( |
| 207 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 207 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 208 int gpu_host_id) OVERRIDE; | 208 int gpu_host_id) OVERRIDE; |
| 209 virtual void AcceleratedSurfacePostSubBuffer( | 209 virtual void AcceleratedSurfacePostSubBuffer( |
| 210 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 210 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); | 361 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); |
| 362 LRESULT OnReconvertString(RECONVERTSTRING* reconv); | 362 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
| 363 | 363 |
| 364 // Displays the on screen keyboard for editable fields. | 364 // Displays the on screen keyboard for editable fields. |
| 365 void DisplayOnScreenKeyboardIfNeeded(); | 365 void DisplayOnScreenKeyboardIfNeeded(); |
| 366 | 366 |
| 367 // 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 |
| 368 // a WM_POINTERDOWN message. | 368 // a WM_POINTERDOWN message. |
| 369 void ResetPointerDownContext(); | 369 void ResetPointerDownContext(); |
| 370 | 370 |
| 371 // Switches between raw-touches mode and gesture mode. Currently only takes |
| 372 // effect when kEnableTouchEvents is in effect. |
| 373 void EnableDesiredTouchMode(bool touch); |
| 374 |
| 371 // The associated Model. While |this| is being Destroyed, | 375 // The associated Model. While |this| is being Destroyed, |
| 372 // |render_widget_host_| is NULL and the Windows message loop is run one last | 376 // |render_widget_host_| is NULL and the Windows message loop is run one last |
| 373 // time. Message handlers must check for a NULL |render_widget_host_|. | 377 // time. Message handlers must check for a NULL |render_widget_host_|. |
| 374 RenderWidgetHostImpl* render_widget_host_; | 378 RenderWidgetHostImpl* render_widget_host_; |
| 375 | 379 |
| 376 // When we are doing accelerated compositing | 380 // When we are doing accelerated compositing |
| 377 HWND compositor_host_window_; | 381 HWND compositor_host_window_; |
| 378 | 382 |
| 379 // Presents a texture received from another process to the compositing | 383 // Presents a texture received from another process to the compositing |
| 380 // window. | 384 // window. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 | 543 |
| 540 // Set to true if the focus is currently on an editable field on the page. | 544 // Set to true if the focus is currently on an editable field on the page. |
| 541 bool focus_on_editable_field_; | 545 bool focus_on_editable_field_; |
| 542 | 546 |
| 543 // Set to true if we received a focus change after a WM_POINTERDOWN message. | 547 // Set to true if we received a focus change after a WM_POINTERDOWN message. |
| 544 bool received_focus_change_after_pointer_down_; | 548 bool received_focus_change_after_pointer_down_; |
| 545 | 549 |
| 546 // Region in which the view will be transparent to clicks. | 550 // Region in which the view will be transparent to clicks. |
| 547 gfx::ScopedSkRegion transparent_region_; | 551 gfx::ScopedSkRegion transparent_region_; |
| 548 | 552 |
| 553 // Are touch events currently enabled? |
| 554 bool touch_events_enabled_; |
| 555 |
| 549 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 550 }; | 557 }; |
| 551 | 558 |
| 552 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 559 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |