| 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" |
| 11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/common/frame_navigate_params.h" | 12 #include "content/public/common/frame_navigate_params.h" |
| 13 #include "content/public/common/page_transition_types.h" | 13 #include "content/public/common/page_transition_types.h" |
| 14 #include "content/public/common/page_zoom.h" |
| 14 #include "ipc/ipc_listener.h" | 15 #include "ipc/ipc_listener.h" |
| 15 #include "ipc/ipc_sender.h" | 16 #include "ipc/ipc_sender.h" |
| 16 #include "ui/base/window_open_disposition.h" | 17 #include "ui/base/window_open_disposition.h" |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| 20 class NavigationEntry; | 21 class NavigationEntry; |
| 21 class RenderFrameHost; | 22 class RenderFrameHost; |
| 22 class RenderViewHost; | 23 class RenderViewHost; |
| 23 class WebContents; | 24 class WebContents; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // Invoked when the renderer has toggled the tab into/out of fullscreen mode. | 313 // Invoked when the renderer has toggled the tab into/out of fullscreen mode. |
| 313 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {} | 314 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {} |
| 314 | 315 |
| 315 // Invoked when visible SSL state (as defined by SSLStatus) changes. | 316 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
| 316 virtual void DidChangeVisibleSSLState() {} | 317 virtual void DidChangeVisibleSSLState() {} |
| 317 | 318 |
| 318 // Invoked when an interstitial page is attached or detached. | 319 // Invoked when an interstitial page is attached or detached. |
| 319 virtual void DidAttachInterstitialPage() {} | 320 virtual void DidAttachInterstitialPage() {} |
| 320 virtual void DidDetachInterstitialPage() {} | 321 virtual void DidDetachInterstitialPage() {} |
| 321 | 322 |
| 323 // Invoked when a zoom change is initiated from WebContents::SetZoomLevel(). |
| 324 virtual void DidSetZoomLevel(int old_zoom_level, |
| 325 int new_zoom_level, |
| 326 ZoomMode zoom_mode) {} |
| 327 |
| 322 // Invoked before a form repost warning is shown. | 328 // Invoked before a form repost warning is shown. |
| 323 virtual void BeforeFormRepostWarningShow() {} | 329 virtual void BeforeFormRepostWarningShow() {} |
| 324 | 330 |
| 325 // Invoked when the beforeunload handler fires. The time is from the renderer. | 331 // Invoked when the beforeunload handler fires. The time is from the renderer. |
| 326 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} | 332 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} |
| 327 | 333 |
| 328 // Invoked when a user cancels a before unload dialog. | 334 // Invoked when a user cancels a before unload dialog. |
| 329 virtual void BeforeUnloadDialogCancelled() {} | 335 virtual void BeforeUnloadDialogCancelled() {} |
| 330 | 336 |
| 331 // Invoked when an accessibility event is received from the renderer. | 337 // Invoked when an accessibility event is received from the renderer. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 void WebContentsImplDestroyed(); | 370 void WebContentsImplDestroyed(); |
| 365 | 371 |
| 366 WebContentsImpl* web_contents_; | 372 WebContentsImpl* web_contents_; |
| 367 | 373 |
| 368 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 374 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 369 }; | 375 }; |
| 370 | 376 |
| 371 } // namespace content | 377 } // namespace content |
| 372 | 378 |
| 373 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 379 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |