| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 RenderFrameHost* source_render_frame_host, | 311 RenderFrameHost* source_render_frame_host, |
| 312 const GURL& url, | 312 const GURL& url, |
| 313 const Referrer& referrer, | 313 const Referrer& referrer, |
| 314 WindowOpenDisposition disposition, | 314 WindowOpenDisposition disposition, |
| 315 ui::PageTransition transition) {} | 315 ui::PageTransition transition) {} |
| 316 | 316 |
| 317 // This method is invoked when the renderer process has completed its first | 317 // This method is invoked when the renderer process has completed its first |
| 318 // paint after a non-empty layout. | 318 // paint after a non-empty layout. |
| 319 virtual void DidFirstVisuallyNonEmptyPaint() {} | 319 virtual void DidFirstVisuallyNonEmptyPaint() {} |
| 320 | 320 |
| 321 // This method is invoked when the main frame in the renderer performs the |
| 322 // first paint after a navigation. |
| 323 virtual void DidFirstPaintAfterLoad(RenderWidgetHost* render_widget_host) {} |
| 324 |
| 321 // When WebContents::Stop() is called, the WebContents stops loading and then | 325 // When WebContents::Stop() is called, the WebContents stops loading and then |
| 322 // invokes this method. If there are ongoing navigations, their respective | 326 // invokes this method. If there are ongoing navigations, their respective |
| 323 // failure methods will also be invoked. | 327 // failure methods will also be invoked. |
| 324 virtual void NavigationStopped() {} | 328 virtual void NavigationStopped() {} |
| 325 | 329 |
| 326 // Called when there has been direct user interaction with the WebContents. | 330 // Called when there has been direct user interaction with the WebContents. |
| 327 // The type argument specifies the kind of interaction. Direct user input | 331 // The type argument specifies the kind of interaction. Direct user input |
| 328 // signalled through this callback includes: | 332 // signalled through this callback includes: |
| 329 // 1) any mouse down event (blink::WebInputEvent::MouseDown); | 333 // 1) any mouse down event (blink::WebInputEvent::MouseDown); |
| 330 // 2) the start of a scroll (blink::WebInputEvent::GestureScrollBegin); | 334 // 2) the start of a scroll (blink::WebInputEvent::GestureScrollBegin); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 void ResetWebContents(); | 488 void ResetWebContents(); |
| 485 | 489 |
| 486 WebContentsImpl* web_contents_; | 490 WebContentsImpl* web_contents_; |
| 487 | 491 |
| 488 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 492 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 489 }; | 493 }; |
| 490 | 494 |
| 491 } // namespace content | 495 } // namespace content |
| 492 | 496 |
| 493 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 497 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |