| 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_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 // Whether the user agent is overridden using the Chrome for Android "Request | 225 // Whether the user agent is overridden using the Chrome for Android "Request |
| 226 // Desktop Site" feature. | 226 // Desktop Site" feature. |
| 227 virtual bool IsOverridingUserAgent(); | 227 virtual bool IsOverridingUserAgent(); |
| 228 | 228 |
| 229 virtual bool IsJavaScriptDialogShowing() const; | 229 virtual bool IsJavaScriptDialogShowing() const; |
| 230 | 230 |
| 231 // Whether download UI should be hidden. | 231 // Whether download UI should be hidden. |
| 232 virtual bool HideDownloadUI() const; | 232 virtual bool HideDownloadUI() const; |
| 233 | 233 |
| 234 // Whether the focused element on the page is editable. This returns true iff |
| 235 // the focused frame has a focused editable element. |
| 236 virtual bool IsFocusedElementEditable(); |
| 237 |
| 238 // Asks the delegate to clear the focused element. This will lead to an IPC to |
| 239 // the focused RenderWidget. |
| 240 virtual void ClearFocusedElement() {} |
| 241 |
| 234 protected: | 242 protected: |
| 235 virtual ~RenderViewHostDelegate() {} | 243 virtual ~RenderViewHostDelegate() {} |
| 236 }; | 244 }; |
| 237 | 245 |
| 238 } // namespace content | 246 } // namespace content |
| 239 | 247 |
| 240 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |