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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } 331 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; }
332 332
333 // NOTE: Do not add functions that just send an IPC message that are called in 333 // NOTE: Do not add functions that just send an IPC message that are called in
334 // one or two places. Have the caller send the IPC message directly (unless 334 // one or two places. Have the caller send the IPC message directly (unless
335 // the caller places are in different platforms, in which case it's better 335 // the caller places are in different platforms, in which case it's better
336 // to keep them consistent). 336 // to keep them consistent).
337 337
338 protected: 338 protected:
339 // RenderWidgetHost protected overrides. 339 // RenderWidgetHost protected overrides.
340 void OnUserGesture() override; 340 void OnUserGesture() override;
341 void OnUserInteraction(const blink::WebInputEvent::Type type) override;
341 void NotifyRendererUnresponsive() override; 342 void NotifyRendererUnresponsive() override;
342 void NotifyRendererResponsive() override; 343 void NotifyRendererResponsive() override;
343 void OnRenderAutoResized(const gfx::Size& size) override; 344 void OnRenderAutoResized(const gfx::Size& size) override;
344 void RequestToLockMouse(bool user_gesture, 345 void RequestToLockMouse(bool user_gesture,
345 bool last_unlocked_by_target) override; 346 bool last_unlocked_by_target) override;
346 bool IsFullscreenGranted() const override; 347 bool IsFullscreenGranted() const override;
347 blink::WebDisplayMode GetDisplayMode() const override; 348 blink::WebDisplayMode GetDisplayMode() const override;
348 void OnFocus() override; 349 void OnFocus() override;
349 350
350 // IPC message handlers. 351 // IPC message handlers.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 492 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
492 }; 493 };
493 494
494 #if defined(COMPILER_MSVC) 495 #if defined(COMPILER_MSVC)
495 #pragma warning(pop) 496 #pragma warning(pop)
496 #endif 497 #endif
497 498
498 } // namespace content 499 } // namespace content
499 500
500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 501 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698