Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1388293002: Notify WebContentsObservers of user interactions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring site engagement to use DidGetUserInteraction Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 interaction while focus was on
145 // the page. This is used to inform the delegate that a user is interacting
146 // with a site.
147 virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {}
nasko 2015/10/27 13:41:19 The RenderViewHost object is deprecated and active
dominickn 2015/10/27 23:21:53 Done.
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 282 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
277 virtual bool IsVirtualKeyboardRequested(); 283 virtual bool IsVirtualKeyboardRequested();
278 284
279 protected: 285 protected:
280 virtual ~RenderViewHostDelegate() {} 286 virtual ~RenderViewHostDelegate() {}
281 }; 287 };
282 288
283 } // namespace content 289 } // namespace content
284 290
285 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 291 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698