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 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} | |
wjmaclean
2015/10/19 15:43:28
Add a comment to explain what this function is for
Kevin McNee - google account
2015/10/20 15:13:43
Done.
| |
422 | |
421 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 423 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
422 virtual bool OnMessageReceived(const IPC::Message& message, | 424 virtual bool OnMessageReceived(const IPC::Message& message, |
423 RenderFrameHost* render_frame_host); | 425 RenderFrameHost* render_frame_host); |
424 | 426 |
425 // Notification that |contents| has gained focus. | 427 // Notification that |contents| has gained focus. |
426 virtual void OnWebContentsFocused() {} | 428 virtual void OnWebContentsFocused() {} |
427 | 429 |
428 // IPC::Listener implementation. | 430 // IPC::Listener implementation. |
429 bool OnMessageReceived(const IPC::Message& message) override; | 431 bool OnMessageReceived(const IPC::Message& message) override; |
430 | 432 |
(...skipping 24 matching lines...) Expand all Loading... | |
455 void ResetWebContents(); | 457 void ResetWebContents(); |
456 | 458 |
457 WebContentsImpl* web_contents_; | 459 WebContentsImpl* web_contents_; |
458 | 460 |
459 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 461 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
460 }; | 462 }; |
461 | 463 |
462 } // namespace content | 464 } // namespace content |
463 | 465 |
464 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 466 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |