| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 // Invoked when the renderer process changes the page scale factor. | 416 // Invoked when the renderer process changes the page scale factor. |
| 417 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} | 417 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} |
| 418 | 418 |
| 419 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 419 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
| 420 virtual bool OnMessageReceived(const IPC::Message& message, | 420 virtual bool OnMessageReceived(const IPC::Message& message, |
| 421 RenderFrameHost* render_frame_host); | 421 RenderFrameHost* render_frame_host); |
| 422 | 422 |
| 423 // Notification that |contents| has gained focus. | 423 // Notification that |contents| has gained focus. |
| 424 virtual void OnWebContentsFocused() {} | 424 virtual void OnWebContentsFocused() {} |
| 425 | 425 |
| 426 // Notification that |contents| has lost focus. |
| 427 virtual void OnWebContentsLostFocus() {} |
| 428 |
| 426 // Notifes that a CompositorFrame was received from the renderer. | 429 // Notifes that a CompositorFrame was received from the renderer. |
| 427 virtual void DidReceiveCompositorFrame() {} | 430 virtual void DidReceiveCompositorFrame() {} |
| 428 | 431 |
| 429 // Notifies that the manifest URL for the main frame changed to | 432 // Notifies that the manifest URL for the main frame changed to |
| 430 // |manifest_url|. This will be invoked when a document with a manifest loads | 433 // |manifest_url|. This will be invoked when a document with a manifest loads |
| 431 // or when the manifest URL changes (possibly to nothing). It is not invoked | 434 // or when the manifest URL changes (possibly to nothing). It is not invoked |
| 432 // when a document with no manifest loads. During document load, if the | 435 // when a document with no manifest loads. During document load, if the |
| 433 // document has both a manifest and a favicon, DidUpdateWebManifestURL() will | 436 // document has both a manifest and a favicon, DidUpdateWebManifestURL() will |
| 434 // be invoked before DidUpdateFaviconURL(). | 437 // be invoked before DidUpdateFaviconURL(). |
| 435 virtual void DidUpdateWebManifestURL( | 438 virtual void DidUpdateWebManifestURL( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 465 void ResetWebContents(); | 468 void ResetWebContents(); |
| 466 | 469 |
| 467 WebContentsImpl* web_contents_; | 470 WebContentsImpl* web_contents_; |
| 468 | 471 |
| 469 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 472 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 470 }; | 473 }; |
| 471 | 474 |
| 472 } // namespace content | 475 } // namespace content |
| 473 | 476 |
| 474 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 477 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |