| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 // This method is invoked when a RenderViewHost of this WebContents was | 258 // This method is invoked when a RenderViewHost of this WebContents was |
| 259 // configured to ignore UI events, and an UI event took place. | 259 // configured to ignore UI events, and an UI event took place. |
| 260 virtual void DidGetIgnoredUIEvent() {} | 260 virtual void DidGetIgnoredUIEvent() {} |
| 261 | 261 |
| 262 // These methods are invoked every time the WebContents changes visibility. | 262 // These methods are invoked every time the WebContents changes visibility. |
| 263 virtual void WasShown() {} | 263 virtual void WasShown() {} |
| 264 virtual void WasHidden() {} | 264 virtual void WasHidden() {} |
| 265 | 265 |
| 266 // Invoked when the main frame changes size. | 266 // Invoked when the main frame changes size. |
| 267 virtual void MainFrameWasResized() {} | 267 virtual void MainFrameWasResized(bool width_changed) {} |
| 268 | 268 |
| 269 // This methods is invoked when the title of the WebContents is set. If the | 269 // This methods is invoked when the title of the WebContents is set. If the |
| 270 // title was explicitly set, |explicit_set| is true, otherwise the title was | 270 // title was explicitly set, |explicit_set| is true, otherwise the title was |
| 271 // synthesized and |explicit_set| is false. | 271 // synthesized and |explicit_set| is false. |
| 272 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} | 272 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} |
| 273 | 273 |
| 274 virtual void AppCacheAccessed(const GURL& manifest_url, | 274 virtual void AppCacheAccessed(const GURL& manifest_url, |
| 275 bool blocked_by_policy) {} | 275 bool blocked_by_policy) {} |
| 276 | 276 |
| 277 // Notification that a plugin has crashed. | 277 // Notification that a plugin has crashed. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 void ResetWebContents(); | 373 void ResetWebContents(); |
| 374 | 374 |
| 375 WebContentsImpl* web_contents_; | 375 WebContentsImpl* web_contents_; |
| 376 | 376 |
| 377 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 377 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 378 }; | 378 }; |
| 379 | 379 |
| 380 } // namespace content | 380 } // namespace content |
| 381 | 381 |
| 382 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 382 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |