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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 322 |
323 // Gets the bounds of the window, in screen coordinates. | 323 // Gets the bounds of the window, in screen coordinates. |
324 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 324 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
325 | 325 |
326 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 326 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
327 | 327 |
328 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, | 328 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
329 size_t start_offset, | 329 size_t start_offset, |
330 size_t end_offset) {}; | 330 size_t end_offset) {}; |
331 | 331 |
332 #if defined(OS_ANDROID) | 332 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) |
333 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 333 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
334 const SkBitmap& zoomed_bitmap) = 0; | 334 const SkBitmap& zoomed_bitmap) = 0; |
| 335 #endif |
335 | 336 |
| 337 #if defined(OS_ANDROID) |
336 // Instructs the view to not drop the surface even when the view is hidden. | 338 // Instructs the view to not drop the surface even when the view is hidden. |
337 virtual void LockCompositingSurface() = 0; | 339 virtual void LockCompositingSurface() = 0; |
338 virtual void UnlockCompositingSurface() = 0; | 340 virtual void UnlockCompositingSurface() = 0; |
339 #endif | 341 #endif |
340 | 342 |
341 #if defined(OS_MACOSX) | 343 #if defined(OS_MACOSX) |
342 // Does any event handling necessary for plugin IME; should be called after | 344 // Does any event handling necessary for plugin IME; should be called after |
343 // the plugin has already had a chance to process the event. If plugin IME is | 345 // the plugin has already had a chance to process the event. If plugin IME is |
344 // not enabled, this is a no-op, so it is always safe to call. | 346 // not enabled, this is a no-op, so it is always safe to call. |
345 // Returns true if the event was handled by IME. | 347 // Returns true if the event was handled by IME. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 436 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
435 | 437 |
436 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 438 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
437 | 439 |
438 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
439 }; | 441 }; |
440 | 442 |
441 } // namespace content | 443 } // namespace content |
442 | 444 |
443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |