| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 // process. | 394 // process. |
| 395 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {} | 395 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {} |
| 396 | 396 |
| 397 // Invoked when a pepper plugin creates and shows or destroys a fullscreen | 397 // Invoked when a pepper plugin creates and shows or destroys a fullscreen |
| 398 // RenderWidget. | 398 // RenderWidget. |
| 399 virtual void DidShowFullscreenWidget(int routing_id) {} | 399 virtual void DidShowFullscreenWidget(int routing_id) {} |
| 400 virtual void DidDestroyFullscreenWidget(int routing_id) {} | 400 virtual void DidDestroyFullscreenWidget(int routing_id) {} |
| 401 | 401 |
| 402 // Invoked when the renderer process has toggled the tab into/out of | 402 // Invoked when the renderer process has toggled the tab into/out of |
| 403 // fullscreen mode. | 403 // fullscreen mode. |
| 404 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {} | 404 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen, |
| 405 bool will_cause_resize) {} |
| 405 | 406 |
| 406 // Invoked when an interstitial page is attached or detached. | 407 // Invoked when an interstitial page is attached or detached. |
| 407 virtual void DidAttachInterstitialPage() {} | 408 virtual void DidAttachInterstitialPage() {} |
| 408 virtual void DidDetachInterstitialPage() {} | 409 virtual void DidDetachInterstitialPage() {} |
| 409 | 410 |
| 410 // Invoked before a form repost warning is shown. | 411 // Invoked before a form repost warning is shown. |
| 411 virtual void BeforeFormRepostWarningShow() {} | 412 virtual void BeforeFormRepostWarningShow() {} |
| 412 | 413 |
| 413 // Invoked when the beforeunload handler fires. The time is from the renderer | 414 // Invoked when the beforeunload handler fires. The time is from the renderer |
| 414 // process. | 415 // process. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 void ResetWebContents(); | 475 void ResetWebContents(); |
| 475 | 476 |
| 476 WebContentsImpl* web_contents_; | 477 WebContentsImpl* web_contents_; |
| 477 | 478 |
| 478 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 479 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 479 }; | 480 }; |
| 480 | 481 |
| 481 } // namespace content | 482 } // namespace content |
| 482 | 483 |
| 483 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 484 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |