Chromium Code Reviews| 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_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 // invokes this method. If there are ongoing navigations, their respective | 312 // invokes this method. If there are ongoing navigations, their respective |
| 313 // failure methods will also be invoked. | 313 // failure methods will also be invoked. |
| 314 virtual void NavigationStopped() {} | 314 virtual void NavigationStopped() {} |
| 315 | 315 |
| 316 // This indicates that the next navigation was triggered by a user gesture. | 316 // This indicates that the next navigation was triggered by a user gesture. |
| 317 // TODO(dominickn): remove this method in favor of DidGetUserInteraction, | 317 // TODO(dominickn): remove this method in favor of DidGetUserInteraction, |
| 318 // with the appropriate filtering by input event type. | 318 // with the appropriate filtering by input event type. |
| 319 virtual void DidGetUserGesture() {} | 319 virtual void DidGetUserGesture() {} |
| 320 | 320 |
| 321 // Called when there has been direct user interaction with the WebContents. | 321 // Called when there has been direct user interaction with the WebContents. |
| 322 // Direct user input includes 1) any mouse down event; 2) any raw key down | 322 // Direct user input includes 1) any mouse down event; 2) the start of a mouse |
| 323 // event; and 3) any gesture tap event (including taps and scrolls). | 323 // wheel scroll; 3) any raw key down event; and 3) any gesture tap event |
|
tdresser
2015/11/02 15:02:10
It might be worth putting each item on it's own li
dominickn
2015/11/02 23:41:14
Done.
| |
| 324 // (including taps and scrolls). | |
| 324 virtual void DidGetUserInteraction(const blink::WebInputEvent::Type type) {} | 325 virtual void DidGetUserInteraction(const blink::WebInputEvent::Type type) {} |
| 325 | 326 |
| 326 // This method is invoked when a RenderViewHost of this WebContents was | 327 // This method is invoked when a RenderViewHost of this WebContents was |
| 327 // configured to ignore UI events, and an UI event took place. | 328 // configured to ignore UI events, and an UI event took place. |
| 328 virtual void DidGetIgnoredUIEvent() {} | 329 virtual void DidGetIgnoredUIEvent() {} |
| 329 | 330 |
| 330 // These methods are invoked every time the WebContents changes visibility. | 331 // These methods are invoked every time the WebContents changes visibility. |
| 331 virtual void WasShown() {} | 332 virtual void WasShown() {} |
| 332 virtual void WasHidden() {} | 333 virtual void WasHidden() {} |
| 333 | 334 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 463 void ResetWebContents(); | 464 void ResetWebContents(); |
| 464 | 465 |
| 465 WebContentsImpl* web_contents_; | 466 WebContentsImpl* web_contents_; |
| 466 | 467 |
| 467 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 468 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 468 }; | 469 }; |
| 469 | 470 |
| 470 } // namespace content | 471 } // namespace content |
| 471 | 472 |
| 472 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 473 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |