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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // Returns true if the RenderViewHost will never be visible. | 273 // Returns true if the RenderViewHost will never be visible. |
274 virtual bool IsNeverVisible(); | 274 virtual bool IsNeverVisible(); |
275 | 275 |
276 // Returns the FrameTree the render view should use. Guaranteed to be constant | 276 // Returns the FrameTree the render view should use. Guaranteed to be constant |
277 // for the lifetime of the render view. | 277 // for the lifetime of the render view. |
278 // | 278 // |
279 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 279 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
280 // created by the RenderViewHost. | 280 // created by the RenderViewHost. |
281 virtual FrameTree* GetFrameTree(); | 281 virtual FrameTree* GetFrameTree(); |
282 | 282 |
| 283 // Optional state storage for if the Virtual Keyboard has been requested by |
| 284 // this page or not. If it has, this can be used to suppress things like the |
| 285 // link disambiguation dialog, which doesn't interact well with the virtual |
| 286 // keyboard. |
| 287 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
| 288 virtual bool IsVirtualKeyboardRequested(); |
| 289 |
283 protected: | 290 protected: |
284 virtual ~RenderViewHostDelegate() {} | 291 virtual ~RenderViewHostDelegate() {} |
285 }; | 292 }; |
286 | 293 |
287 } // namespace content | 294 } // namespace content |
288 | 295 |
289 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 296 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |