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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 // Gets the bounds of the window, in screen coordinates. | 316 // Gets the bounds of the window, in screen coordinates. |
317 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 317 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
318 | 318 |
319 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 319 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
320 | 320 |
321 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, | 321 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
322 size_t start_offset, | 322 size_t start_offset, |
323 size_t end_offset) {}; | 323 size_t end_offset) {}; |
324 | 324 |
325 #if defined(OS_ANDROID) | 325 #if defined(OS_ANDROID) || defined(OS_WIN) |
326 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 326 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
327 const SkBitmap& zoomed_bitmap) = 0; | 327 const SkBitmap& zoomed_bitmap) = 0; |
| 328 #endif |
328 | 329 |
| 330 #if defined(OS_ANDROID) |
329 // Instructs the view to not drop the surface even when the view is hidden. | 331 // Instructs the view to not drop the surface even when the view is hidden. |
330 virtual void LockCompositingSurface() = 0; | 332 virtual void LockCompositingSurface() = 0; |
331 virtual void UnlockCompositingSurface() = 0; | 333 virtual void UnlockCompositingSurface() = 0; |
332 #endif | 334 #endif |
333 | 335 |
334 #if defined(OS_MACOSX) | 336 #if defined(OS_MACOSX) |
335 // Does any event handling necessary for plugin IME; should be called after | 337 // Does any event handling necessary for plugin IME; should be called after |
336 // the plugin has already had a chance to process the event. If plugin IME is | 338 // the plugin has already had a chance to process the event. If plugin IME is |
337 // not enabled, this is a no-op, so it is always safe to call. | 339 // not enabled, this is a no-op, so it is always safe to call. |
338 // Returns true if the event was handled by IME. | 340 // Returns true if the event was handled by IME. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 uint32 renderer_frame_number_; | 427 uint32 renderer_frame_number_; |
426 | 428 |
427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 429 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
428 | 430 |
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
430 }; | 432 }; |
431 | 433 |
432 } // namespace content | 434 } // namespace content |
433 | 435 |
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |