| 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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
| 10 #endif | 10 #endif |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; | 312 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; |
| 313 | 313 |
| 314 // Gets the bounds of the window, in screen coordinates. | 314 // Gets the bounds of the window, in screen coordinates. |
| 315 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 315 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
| 316 | 316 |
| 317 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 317 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
| 318 | 318 |
| 319 virtual void SetScrollOffsetPinning( | 319 virtual void SetScrollOffsetPinning( |
| 320 bool is_pinned_to_left, bool is_pinned_to_right) = 0; | 320 bool is_pinned_to_left, bool is_pinned_to_right) = 0; |
| 321 | 321 |
| 322 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 323 int start_offset, |
| 324 int end_offset) {}; |
| 325 |
| 322 #if defined(OS_ANDROID) | 326 #if defined(OS_ANDROID) |
| 323 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 327 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
| 324 const SkBitmap& zoomed_bitmap) = 0; | 328 const SkBitmap& zoomed_bitmap) = 0; |
| 325 | 329 |
| 326 // Instructs the view to not drop the surface even when the view is hidden. | 330 // Instructs the view to not drop the surface even when the view is hidden. |
| 327 virtual void LockCompositingSurface() = 0; | 331 virtual void LockCompositingSurface() = 0; |
| 328 virtual void UnlockCompositingSurface() = 0; | 332 virtual void UnlockCompositingSurface() = 0; |
| 329 #endif | 333 #endif |
| 330 | 334 |
| 331 #if defined(OS_MACOSX) | 335 #if defined(OS_MACOSX) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 uint32 renderer_frame_number_; | 429 uint32 renderer_frame_number_; |
| 426 | 430 |
| 427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 431 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 428 | 432 |
| 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 430 }; | 434 }; |
| 431 | 435 |
| 432 } // namespace content | 436 } // namespace content |
| 433 | 437 |
| 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |