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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Invoked when media is playing. | 411 // Invoked when media is playing. |
412 virtual void MediaStartedPlaying() {} | 412 virtual void MediaStartedPlaying() {} |
413 | 413 |
414 // Invoked when media is paused. | 414 // Invoked when media is paused. |
415 virtual void MediaPaused() {} | 415 virtual void MediaPaused() {} |
416 | 416 |
417 // Invoked when media session has changed its state. | 417 // Invoked when media session has changed its state. |
418 virtual void MediaSessionStateChanged(bool is_controllable, | 418 virtual void MediaSessionStateChanged(bool is_controllable, |
419 bool is_suspended) {} | 419 bool is_suspended) {} |
420 | 420 |
| 421 // Invoked when the renderer process changes the page scale factor. |
| 422 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} |
| 423 |
421 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 424 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
422 virtual bool OnMessageReceived(const IPC::Message& message, | 425 virtual bool OnMessageReceived(const IPC::Message& message, |
423 RenderFrameHost* render_frame_host); | 426 RenderFrameHost* render_frame_host); |
424 | 427 |
425 // Notification that |contents| has gained focus. | 428 // Notification that |contents| has gained focus. |
426 virtual void OnWebContentsFocused() {} | 429 virtual void OnWebContentsFocused() {} |
427 | 430 |
428 // IPC::Listener implementation. | 431 // IPC::Listener implementation. |
429 bool OnMessageReceived(const IPC::Message& message) override; | 432 bool OnMessageReceived(const IPC::Message& message) override; |
430 | 433 |
(...skipping 24 matching lines...) Expand all Loading... |
455 void ResetWebContents(); | 458 void ResetWebContents(); |
456 | 459 |
457 WebContentsImpl* web_contents_; | 460 WebContentsImpl* web_contents_; |
458 | 461 |
459 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 462 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
460 }; | 463 }; |
461 | 464 |
462 } // namespace content | 465 } // namespace content |
463 | 466 |
464 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 467 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |