| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 bool HasDisplayPropertyChanged(gfx::NativeView view); | 112 bool HasDisplayPropertyChanged(gfx::NativeView view); |
| 113 | 113 |
| 114 //---------------------------------------------------------------------------- | 114 //---------------------------------------------------------------------------- |
| 115 // The following methods can be overridden by derived classes. | 115 // The following methods can be overridden by derived classes. |
| 116 | 116 |
| 117 // Notifies the View that the renderer text selection has changed. | 117 // Notifies the View that the renderer text selection has changed. |
| 118 virtual void SelectionChanged(const base::string16& text, | 118 virtual void SelectionChanged(const base::string16& text, |
| 119 size_t offset, | 119 size_t offset, |
| 120 const gfx::Range& range); | 120 const gfx::Range& range); |
| 121 | 121 |
| 122 // The requested size of the renderer. May differ from GetViewBounds().size() |
| 123 // when the view requires additional throttling. |
| 124 virtual gfx::Size GetRequestedRendererSize() const; |
| 125 |
| 122 // The size of the view's backing surface in non-DPI-adjusted pixels. | 126 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 123 virtual gfx::Size GetPhysicalBackingSize() const; | 127 virtual gfx::Size GetPhysicalBackingSize() const; |
| 124 | 128 |
| 125 // The height of the physical backing surface that is overdrawn opaquely in | 129 // The height of the physical backing surface that is overdrawn opaquely in |
| 126 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 130 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| 127 virtual float GetOverdrawBottomHeight() const; | 131 virtual float GetOverdrawBottomHeight() const; |
| 128 | 132 |
| 129 // Called prior to forwarding input event messages to the renderer, giving | 133 // Called prior to forwarding input event messages to the renderer, giving |
| 130 // the view a chance to perform in-process event filtering or processing. | 134 // the view a chance to perform in-process event filtering or processing. |
| 131 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 135 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
| (...skipping 293 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 |