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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 // Gets the bounds of the window, in screen coordinates. | 329 // Gets the bounds of the window, in screen coordinates. |
330 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 330 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
331 | 331 |
332 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 332 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
333 | 333 |
334 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, | 334 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
335 size_t start_offset, | 335 size_t start_offset, |
336 size_t end_offset) {}; | 336 size_t end_offset) {}; |
337 | 337 |
338 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) | 338 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) || defined(USE_AURA) |
339 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 339 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
340 const SkBitmap& zoomed_bitmap) = 0; | 340 const SkBitmap& zoomed_bitmap) = 0; |
341 #endif | 341 #endif |
342 | 342 |
343 #if defined(OS_ANDROID) | 343 #if defined(OS_ANDROID) |
344 // Instructs the view to not drop the surface even when the view is hidden. | 344 // Instructs the view to not drop the surface even when the view is hidden. |
345 virtual void LockCompositingSurface() = 0; | 345 virtual void LockCompositingSurface() = 0; |
346 virtual void UnlockCompositingSurface() = 0; | 346 virtual void UnlockCompositingSurface() = 0; |
347 #endif | 347 #endif |
348 | 348 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 442 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
443 | 443 |
444 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 444 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
445 | 445 |
446 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 446 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
447 }; | 447 }; |
448 | 448 |
449 } // namespace content | 449 } // namespace content |
450 | 450 |
451 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 451 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |