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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 // Tells if the display property (work area/scale factor) has | 135 // Tells if the display property (work area/scale factor) has |
136 // changed since the last time. | 136 // changed since the last time. |
137 bool HasDisplayPropertyChanged(gfx::NativeView view); | 137 bool HasDisplayPropertyChanged(gfx::NativeView view); |
138 | 138 |
139 // Called by the TextInputManager to notify the view about being removed from | 139 // Called by the TextInputManager to notify the view about being removed from |
140 // the list of registered views, i.e., TextInputManager is no longer tracking | 140 // the list of registered views, i.e., TextInputManager is no longer tracking |
141 // TextInputState from this view. The RWHV should reset |text_input_manager_| | 141 // TextInputState from this view. The RWHV should reset |text_input_manager_| |
142 // to nullptr. | 142 // to nullptr. |
143 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); | 143 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); |
144 | 144 |
145 void SetPageScaleFactorForSubframes(float page_scale); | |
kenrb
2017/01/24 17:13:27
Is this called anywhere? I can't find a call site.
wjmaclean
2017/01/24 18:24:26
Hmm, no ... I must have copied a stale piece of co
| |
146 | |
145 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); | 147 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); |
146 | 148 |
147 //---------------------------------------------------------------------------- | 149 //---------------------------------------------------------------------------- |
148 // The following methods can be overridden by derived classes. | 150 // The following methods can be overridden by derived classes. |
149 | 151 |
150 // Notifies the View that the renderer text selection has changed. | 152 // Notifies the View that the renderer text selection has changed. |
151 virtual void SelectionChanged(const base::string16& text, | 153 virtual void SelectionChanged(const base::string16& text, |
152 size_t offset, | 154 size_t offset, |
153 const gfx::Range& range); | 155 const gfx::Range& range); |
154 | 156 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
503 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 505 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
504 | 506 |
505 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 507 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
506 | 508 |
507 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 509 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
508 }; | 510 }; |
509 | 511 |
510 } // namespace content | 512 } // namespace content |
511 | 513 |
512 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 514 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |