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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 // This method is invoked when a new WebContents was created in response to | 268 // This method is invoked when a new WebContents was created in response to |
| 269 // an action in the observed WebContents, e.g. a link with target=_blank was | 269 // an action in the observed WebContents, e.g. a link with target=_blank was |
| 270 // clicked. The |source_render_frame_host| is the frame in which the action | 270 // clicked. The |source_render_frame_host| is the frame in which the action |
| 271 // took place. | 271 // took place. |
| 272 virtual void DidOpenRequestedURL(WebContents* new_contents, | 272 virtual void DidOpenRequestedURL(WebContents* new_contents, |
| 273 RenderFrameHost* source_render_frame_host, | 273 RenderFrameHost* source_render_frame_host, |
| 274 const GURL& url, | 274 const GURL& url, |
| 275 const Referrer& referrer, | 275 const Referrer& referrer, |
| 276 WindowOpenDisposition disposition, | 276 WindowOpenDisposition disposition, |
| 277 ui::PageTransition transition, | 277 ui::PageTransition transition, |
| 278 bool started_from_context_menu) {} | 278 bool started_from_context_menu, |
| 279 bool not_yet_in_tabstrip) {} | |
|
nasko
2017/03/01 00:48:38
Technically, TabStrip is chrome/ concept and conte
Patrick Noland
2017/03/01 23:58:59
Done.
| |
| 279 | 280 |
| 280 // This method is invoked when the renderer process has completed its first | 281 // This method is invoked when the renderer process has completed its first |
| 281 // paint after a non-empty layout. | 282 // paint after a non-empty layout. |
| 282 virtual void DidFirstVisuallyNonEmptyPaint() {} | 283 virtual void DidFirstVisuallyNonEmptyPaint() {} |
| 283 | 284 |
| 284 // This method is invoked when the main frame in the renderer process performs | 285 // This method is invoked when the main frame in the renderer process performs |
| 285 // the first paint after a navigation. | 286 // the first paint after a navigation. |
| 286 virtual void DidFirstPaintAfterLoad(RenderWidgetHost* render_widget_host) {} | 287 virtual void DidFirstPaintAfterLoad(RenderWidgetHost* render_widget_host) {} |
| 287 | 288 |
| 288 // When WebContents::Stop() is called, the WebContents stops loading and then | 289 // When WebContents::Stop() is called, the WebContents stops loading and then |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 456 void ResetWebContents(); | 457 void ResetWebContents(); |
| 457 | 458 |
| 458 WebContentsImpl* web_contents_; | 459 WebContentsImpl* web_contents_; |
| 459 | 460 |
| 460 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 461 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 461 }; | 462 }; |
| 462 | 463 |
| 463 } // namespace content | 464 } // namespace content |
| 464 | 465 |
| 465 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 466 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |