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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // Invoked when a user cancels a before unload dialog. | 336 // Invoked when a user cancels a before unload dialog. |
337 virtual void BeforeUnloadDialogCancelled() {} | 337 virtual void BeforeUnloadDialogCancelled() {} |
338 | 338 |
339 // Invoked when an accessibility event is received from the renderer process. | 339 // Invoked when an accessibility event is received from the renderer process. |
340 virtual void AccessibilityEventReceived( | 340 virtual void AccessibilityEventReceived( |
341 const std::vector<AXEventNotificationDetails>& details) {} | 341 const std::vector<AXEventNotificationDetails>& details) {} |
342 | 342 |
343 // Invoked when theme color is changed to |theme_color|. | 343 // Invoked when theme color is changed to |theme_color|. |
344 virtual void DidChangeThemeColor(SkColor theme_color) {} | 344 virtual void DidChangeThemeColor(SkColor theme_color) {} |
345 | 345 |
| 346 // Invoked when media is playing. |
| 347 virtual void MediaStartedPlaying() {} |
| 348 |
| 349 // Invoked when media is paused. |
| 350 virtual void MediaPaused() {} |
| 351 |
346 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 352 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
347 virtual bool OnMessageReceived(const IPC::Message& message, | 353 virtual bool OnMessageReceived(const IPC::Message& message, |
348 RenderFrameHost* render_frame_host); | 354 RenderFrameHost* render_frame_host); |
349 | 355 |
350 // IPC::Listener implementation. | 356 // IPC::Listener implementation. |
351 bool OnMessageReceived(const IPC::Message& message) override; | 357 bool OnMessageReceived(const IPC::Message& message) override; |
352 | 358 |
353 // IPC::Sender implementation. | 359 // IPC::Sender implementation. |
354 bool Send(IPC::Message* message) override; | 360 bool Send(IPC::Message* message) override; |
355 int routing_id() const; | 361 int routing_id() const; |
(...skipping 21 matching lines...) Expand all Loading... |
377 void ResetWebContents(); | 383 void ResetWebContents(); |
378 | 384 |
379 WebContentsImpl* web_contents_; | 385 WebContentsImpl* web_contents_; |
380 | 386 |
381 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 387 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
382 }; | 388 }; |
383 | 389 |
384 } // namespace content | 390 } // namespace content |
385 | 391 |
386 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 392 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |