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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
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 | 279 |
279 // This method is invoked when the renderer process has completed its first | 280 // This method is invoked when the renderer process has completed its first |
280 // paint after a non-empty layout. | 281 // paint after a non-empty layout. |
281 virtual void DidFirstVisuallyNonEmptyPaint() {} | 282 virtual void DidFirstVisuallyNonEmptyPaint() {} |
282 | 283 |
283 // This method is invoked when the main frame in the renderer process performs | 284 // This method is invoked when the main frame in the renderer process performs |
284 // the first paint after a navigation. | 285 // the first paint after a navigation. |
285 virtual void DidFirstPaintAfterLoad(RenderWidgetHost* render_widget_host) {} | 286 virtual void DidFirstPaintAfterLoad(RenderWidgetHost* render_widget_host) {} |
286 | 287 |
287 // When WebContents::Stop() is called, the WebContents stops loading and then | 288 // When WebContents::Stop() is called, the WebContents stops loading and then |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 void ResetWebContents(); | 456 void ResetWebContents(); |
456 | 457 |
457 WebContentsImpl* web_contents_; | 458 WebContentsImpl* web_contents_; |
458 | 459 |
459 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 460 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
460 }; | 461 }; |
461 | 462 |
462 } // namespace content | 463 } // namespace content |
463 | 464 |
464 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 465 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |