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