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); | |
167 | 166 |
168 // The requested size of the renderer. May differ from GetViewBounds().size() | 167 // The requested size of the renderer. May differ from GetViewBounds().size() |
169 // when the view requires additional throttling. | 168 // when the view requires additional throttling. |
170 virtual gfx::Size GetRequestedRendererSize() const; | 169 virtual gfx::Size GetRequestedRendererSize() const; |
171 | 170 |
172 // The size of the view's backing surface in non-DPI-adjusted pixels. | 171 // The size of the view's backing surface in non-DPI-adjusted pixels. |
173 virtual gfx::Size GetPhysicalBackingSize() const; | 172 virtual gfx::Size GetPhysicalBackingSize() const; |
174 | 173 |
175 // Whether or not Blink's viewport size should be shrunk by the height of the | 174 // Whether or not Blink's viewport size should be shrunk by the height of the |
176 // URL-bar. | 175 // URL-bar. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 468 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
470 | 469 |
471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 470 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
472 | 471 |
473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
474 }; | 473 }; |
475 | 474 |
476 } // namespace content | 475 } // namespace content |
477 | 476 |
478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |