| 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 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); | 155 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); |
| 156 | 156 |
| 157 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); | 157 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); |
| 158 | 158 |
| 159 //---------------------------------------------------------------------------- | 159 //---------------------------------------------------------------------------- |
| 160 // The following methods can be overridden by derived classes. | 160 // The following methods can be overridden by derived classes. |
| 161 | 161 |
| 162 // Notifies the View that the renderer text selection has changed. | 162 // Notifies the View that the renderer text selection has changed. |
| 163 virtual void SelectionChanged(const base::string16& text, | 163 virtual void SelectionChanged(const base::string16& text, |
| 164 size_t offset, | 164 size_t offset, |
| 165 const gfx::Range& range); | 165 const gfx::Range& range, |
| 166 bool user_initiated); |
| 166 | 167 |
| 167 // The requested size of the renderer. May differ from GetViewBounds().size() | 168 // The requested size of the renderer. May differ from GetViewBounds().size() |
| 168 // when the view requires additional throttling. | 169 // when the view requires additional throttling. |
| 169 virtual gfx::Size GetRequestedRendererSize() const; | 170 virtual gfx::Size GetRequestedRendererSize() const; |
| 170 | 171 |
| 171 // The size of the view's backing surface in non-DPI-adjusted pixels. | 172 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 172 virtual gfx::Size GetPhysicalBackingSize() const; | 173 virtual gfx::Size GetPhysicalBackingSize() const; |
| 173 | 174 |
| 174 // Whether or not Blink's viewport size should be shrunk by the height of the | 175 // Whether or not Blink's viewport size should be shrunk by the height of the |
| 175 // URL-bar. | 176 // URL-bar. |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 489 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 489 | 490 |
| 490 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 491 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 491 | 492 |
| 492 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 493 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 493 }; | 494 }; |
| 494 | 495 |
| 495 } // namespace content | 496 } // namespace content |
| 496 | 497 |
| 497 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 498 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |