Chromium Code Reviews| 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_WIDGET_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 // Once we cancel updating the text direction, we have to ignore all | 150 // Once we cancel updating the text direction, we have to ignore all |
| 151 // succeeding UpdateTextDirection() requests until calling | 151 // succeeding UpdateTextDirection() requests until calling |
| 152 // NotifyTextDirection(). (We may receive keydown events even after we | 152 // NotifyTextDirection(). (We may receive keydown events even after we |
| 153 // canceled updating the text direction because of auto-repeat.) | 153 // canceled updating the text direction because of auto-repeat.) |
| 154 // Note: we cannot undo this change for compatibility with Firefox and IE. | 154 // Note: we cannot undo this change for compatibility with Firefox and IE. |
| 155 virtual void UpdateTextDirection(blink::WebTextDirection direction) = 0; | 155 virtual void UpdateTextDirection(blink::WebTextDirection direction) = 0; |
| 156 virtual void NotifyTextDirection() = 0; | 156 virtual void NotifyTextDirection() = 0; |
| 157 | 157 |
| 158 virtual void Focus() = 0; | 158 virtual void Focus() = 0; |
| 159 virtual void Blur() = 0; | 159 virtual void Blur() = 0; |
| 160 virtual bool IsFocused() const = 0; | |
|
mlamouri (slow - plz ping)
2015/01/21 17:29:36
If preferred, I could expose that to RenderWidgetH
| |
| 160 | 161 |
| 161 // Sets whether the renderer should show controls in an active state. On all | 162 // Sets whether the renderer should show controls in an active state. On all |
| 162 // platforms except mac, that's the same as focused. On mac, the frontmost | 163 // platforms except mac, that's the same as focused. On mac, the frontmost |
| 163 // window will show active controls even if the focus is not in the web | 164 // window will show active controls even if the focus is not in the web |
| 164 // contents, but e.g. in the omnibox. | 165 // contents, but e.g. in the omnibox. |
| 165 virtual void SetActive(bool active) = 0; | 166 virtual void SetActive(bool active) = 0; |
| 166 | 167 |
| 167 // Copies the given subset of the backing store, and passes the result as a | 168 // Copies the given subset of the backing store, and passes the result as a |
| 168 // bitmap to a callback. | 169 // bitmap to a callback. |
| 169 // | 170 // |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 258 // within content/. This method is necessary because | 259 // within content/. This method is necessary because |
| 259 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 260 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
| 260 // subclasses inherit it virtually, which removes our ability to | 261 // subclasses inherit it virtually, which removes our ability to |
| 261 // static_cast to the subclass. | 262 // static_cast to the subclass. |
| 262 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 263 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 } // namespace content | 266 } // namespace content |
| 266 | 267 |
| 267 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |