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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 // Invoked when media is playing. | 419 // Invoked when media is playing. |
420 virtual void MediaStartedPlaying() {} | 420 virtual void MediaStartedPlaying() {} |
421 | 421 |
422 // Invoked when media is paused. | 422 // Invoked when media is paused. |
423 virtual void MediaPaused() {} | 423 virtual void MediaPaused() {} |
424 | 424 |
425 // Invoked when media session has changed its state. | 425 // Invoked when media session has changed its state. |
426 virtual void MediaSessionStateChanged(bool is_controllable, | 426 virtual void MediaSessionStateChanged(bool is_controllable, |
427 bool is_suspended) {} | 427 bool is_suspended) {} |
428 | 428 |
| 429 // Invoked when the renderer process changes the page scale factor. |
| 430 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} |
| 431 |
429 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 432 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
430 virtual bool OnMessageReceived(const IPC::Message& message, | 433 virtual bool OnMessageReceived(const IPC::Message& message, |
431 RenderFrameHost* render_frame_host); | 434 RenderFrameHost* render_frame_host); |
432 | 435 |
433 // Notification that |contents| has gained focus. | 436 // Notification that |contents| has gained focus. |
434 virtual void OnWebContentsFocused() {} | 437 virtual void OnWebContentsFocused() {} |
435 | 438 |
436 // IPC::Listener implementation. | 439 // IPC::Listener implementation. |
437 bool OnMessageReceived(const IPC::Message& message) override; | 440 bool OnMessageReceived(const IPC::Message& message) override; |
438 | 441 |
(...skipping 24 matching lines...) Expand all Loading... |
463 void ResetWebContents(); | 466 void ResetWebContents(); |
464 | 467 |
465 WebContentsImpl* web_contents_; | 468 WebContentsImpl* web_contents_; |
466 | 469 |
467 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 470 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
468 }; | 471 }; |
469 | 472 |
470 } // namespace content | 473 } // namespace content |
471 | 474 |
472 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 475 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |