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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 static blink::WebScreenOrientationType GetOrientationTypeForDesktop( | 324 static blink::WebScreenOrientationType GetOrientationTypeForDesktop( |
325 const gfx::Display& display); | 325 const gfx::Display& display); |
326 | 326 |
327 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; | 327 virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; |
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 // Called by the RenderFrameHost when it recieves an IPC response to a | |
Avi (use Gerrit)
2014/09/29 14:32:10
receives
tapted
2014/09/29 23:06:58
Done.
| |
335 // TextSurroundingSelectionRequest. | |
334 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, | 336 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
335 size_t start_offset, | 337 size_t start_offset, |
336 size_t end_offset) {}; | 338 size_t end_offset); |
337 | 339 |
338 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) || defined(USE_AURA) | 340 // Called by the RenderWidgetHost when an ambiguous gesture is detected to |
341 // show the disambiguation popup bubble. | |
339 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 342 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
340 const SkBitmap& zoomed_bitmap) = 0; | 343 const SkBitmap& zoomed_bitmap); |
341 #endif | |
342 | 344 |
343 #if defined(OS_ANDROID) | 345 #if defined(OS_ANDROID) |
344 // Instructs the view to not drop the surface even when the view is hidden. | 346 // Instructs the view to not drop the surface even when the view is hidden. |
345 virtual void LockCompositingSurface() = 0; | 347 virtual void LockCompositingSurface() = 0; |
346 virtual void UnlockCompositingSurface() = 0; | 348 virtual void UnlockCompositingSurface() = 0; |
347 #endif | 349 #endif |
348 | 350 |
349 #if defined(OS_MACOSX) | 351 #if defined(OS_MACOSX) |
350 // Does any event handling necessary for plugin IME; should be called after | 352 // Does any event handling necessary for plugin IME; should be called after |
351 // the plugin has already had a chance to process the event. If plugin IME is | 353 // the plugin has already had a chance to process the event. If plugin IME is |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 444 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
443 | 445 |
444 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 446 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
445 | 447 |
446 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
447 }; | 449 }; |
448 | 450 |
449 } // namespace content | 451 } // namespace content |
450 | 452 |
451 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |