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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 386 |
387 // Invoked when the beforeunload handler fires. The time is from the renderer | 387 // Invoked when the beforeunload handler fires. The time is from the renderer |
388 // process. | 388 // process. |
389 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} | 389 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} |
390 | 390 |
391 // Invoked when a user cancels a before unload dialog. | 391 // Invoked when a user cancels a before unload dialog. |
392 virtual void BeforeUnloadDialogCancelled() {} | 392 virtual void BeforeUnloadDialogCancelled() {} |
393 | 393 |
394 // Called when accessibility events or location changes are received | 394 // Called when accessibility events or location changes are received |
395 // from a render frame, but only when the accessibility mode has the | 395 // from a render frame, but only when the accessibility mode has the |
396 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set. | 396 // AccessibilityMode::kWebContents flag set. |
397 virtual void AccessibilityEventReceived( | 397 virtual void AccessibilityEventReceived( |
398 const std::vector<AXEventNotificationDetails>& details) {} | 398 const std::vector<AXEventNotificationDetails>& details) {} |
399 virtual void AccessibilityLocationChangesReceived( | 399 virtual void AccessibilityLocationChangesReceived( |
400 const std::vector<AXLocationChangeNotificationDetails>& details) {} | 400 const std::vector<AXLocationChangeNotificationDetails>& details) {} |
401 | 401 |
402 // Invoked when theme color is changed to |theme_color|. | 402 // Invoked when theme color is changed to |theme_color|. |
403 virtual void DidChangeThemeColor(SkColor theme_color) {} | 403 virtual void DidChangeThemeColor(SkColor theme_color) {} |
404 | 404 |
405 // Invoked when media is playing or paused. |id| is unique per player and per | 405 // Invoked when media is playing or paused. |id| is unique per player and per |
406 // RenderFrameHost. There may be multiple players within a RenderFrameHost | 406 // RenderFrameHost. There may be multiple players within a RenderFrameHost |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 void ResetWebContents(); | 457 void ResetWebContents(); |
458 | 458 |
459 WebContentsImpl* web_contents_; | 459 WebContentsImpl* web_contents_; |
460 | 460 |
461 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 461 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
462 }; | 462 }; |
463 | 463 |
464 } // namespace content | 464 } // namespace content |
465 | 465 |
466 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 466 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |