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_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // this lookup will be fast | 141 // this lookup will be fast |
142 virtual WebPreferences GetWebkitPreferences() = 0; | 142 virtual WebPreferences GetWebkitPreferences() = 0; |
143 | 143 |
144 // If any state that affects the webkit preferences changed, this method must | 144 // If any state that affects the webkit preferences changed, this method must |
145 // be called. This triggers recomputing preferences. | 145 // be called. This triggers recomputing preferences. |
146 virtual void OnWebkitPreferencesChanged() = 0; | 146 virtual void OnWebkitPreferencesChanged() = 0; |
147 | 147 |
148 // Passes a list of Webkit preferences to the renderer. | 148 // Passes a list of Webkit preferences to the renderer. |
149 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 149 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
150 | 150 |
| 151 // Returns true if current input device features are different from the values |
| 152 // stored in WebKit preferences. |
| 153 virtual bool InputDeviceFeaturesChanged() = 0; |
| 154 |
151 // Notify the render view host to select the word around the caret. | 155 // Notify the render view host to select the word around the caret. |
152 virtual void SelectWordAroundCaret() = 0; | 156 virtual void SelectWordAroundCaret() = 0; |
153 | 157 |
154 private: | 158 private: |
155 // This interface should only be implemented inside content. | 159 // This interface should only be implemented inside content. |
156 friend class RenderViewHostImpl; | 160 friend class RenderViewHostImpl; |
157 RenderViewHost() {} | 161 RenderViewHost() {} |
158 }; | 162 }; |
159 | 163 |
160 } // namespace content | 164 } // namespace content |
161 | 165 |
162 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 166 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |