| 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" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/process/kill.h" | 12 #include "base/process/kill.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 14 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
| 17 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 17 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 18 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 18 #include "third_party/WebKit/public/web/WebPopupType.h" | 19 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 19 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
| 20 | 21 |
| 21 class GURL; | 22 class GURL; |
| 22 class SkBitmap; | 23 class SkBitmap; |
| 23 struct ViewHostMsg_CreateWindow_Params; | 24 struct ViewHostMsg_CreateWindow_Params; |
| 24 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 25 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 25 | 26 |
| 26 namespace base { | 27 namespace base { |
| 27 class ListValue; | 28 class ListValue; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Return a dummy RendererPreferences object that will be used by the renderer | 134 // Return a dummy RendererPreferences object that will be used by the renderer |
| 134 // associated with the owning RenderViewHost. | 135 // associated with the owning RenderViewHost. |
| 135 virtual RendererPreferences GetRendererPrefs( | 136 virtual RendererPreferences GetRendererPrefs( |
| 136 BrowserContext* browser_context) const = 0; | 137 BrowserContext* browser_context) const = 0; |
| 137 | 138 |
| 138 // Notification the user has made a gesture while focus was on the | 139 // Notification the user has made a gesture while focus was on the |
| 139 // page. This is used to avoid uninitiated user downloads (aka carpet | 140 // page. This is used to avoid uninitiated user downloads (aka carpet |
| 140 // bombing), see DownloadRequestLimiter for details. | 141 // bombing), see DownloadRequestLimiter for details. |
| 141 virtual void OnUserGesture() {} | 142 virtual void OnUserGesture() {} |
| 142 | 143 |
| 144 // Notification the user has performed a direct input while focus was on the |
| 145 // page. This is used to inform the delegate that a user is interacting with |
| 146 // a site. |
| 147 virtual void OnUserInput(const blink::WebInputEvent::Type type) {} |
| 148 |
| 143 // Notification from the renderer host that blocked UI event occurred. | 149 // Notification from the renderer host that blocked UI event occurred. |
| 144 // This happens when there are tab-modal dialogs. In this case, the | 150 // This happens when there are tab-modal dialogs. In this case, the |
| 145 // notification is needed to let us draw attention to the dialog (i.e. | 151 // notification is needed to let us draw attention to the dialog (i.e. |
| 146 // refocus on the modal dialog, flash title etc). | 152 // refocus on the modal dialog, flash title etc). |
| 147 virtual void OnIgnoredUIEvent() {} | 153 virtual void OnIgnoredUIEvent() {} |
| 148 | 154 |
| 149 // Notification that the renderer has become unresponsive. The | 155 // Notification that the renderer has become unresponsive. The |
| 150 // delegate can use this notification to show a warning to the user. | 156 // delegate can use this notification to show a warning to the user. |
| 151 virtual void RendererUnresponsive(RenderViewHost* render_view_host) {} | 157 virtual void RendererUnresponsive(RenderViewHost* render_view_host) {} |
| 152 | 158 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 283 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
| 278 virtual bool IsVirtualKeyboardRequested(); | 284 virtual bool IsVirtualKeyboardRequested(); |
| 279 | 285 |
| 280 protected: | 286 protected: |
| 281 virtual ~RenderViewHostDelegate() {} | 287 virtual ~RenderViewHostDelegate() {} |
| 282 }; | 288 }; |
| 283 | 289 |
| 284 } // namespace content | 290 } // namespace content |
| 285 | 291 |
| 286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 292 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |