Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1586)

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Rename constants Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // Invoked before a form repost warning is shown. 439 // Invoked before a form repost warning is shown.
440 virtual void BeforeFormRepostWarningShow() {} 440 virtual void BeforeFormRepostWarningShow() {}
441 441
442 // Invoked when the beforeunload handler fires. The time is from the renderer 442 // Invoked when the beforeunload handler fires. The time is from the renderer
443 // process. 443 // process.
444 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} 444 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
445 445
446 // Invoked when a user cancels a before unload dialog. 446 // Invoked when a user cancels a before unload dialog.
447 virtual void BeforeUnloadDialogCancelled() {} 447 virtual void BeforeUnloadDialogCancelled() {}
448 448
449 // Invoked when an accessibility event is received from the renderer process. 449 // Called when accessibility events or location changes are received
450 // from a render frame, but only when the accessibility mode has the
451 // AccessibilityModeFlagWebContents flag set.
450 virtual void AccessibilityEventReceived( 452 virtual void AccessibilityEventReceived(
451 const std::vector<AXEventNotificationDetails>& details) {} 453 const std::vector<AXEventNotificationDetails>& details) {}
452
453 // Invoked when an accessibility location change is received from the
454 // renderer process.
455 virtual void AccessibilityLocationChangesReceived( 454 virtual void AccessibilityLocationChangesReceived(
456 const std::vector<AXLocationChangeNotificationDetails>& details) {} 455 const std::vector<AXLocationChangeNotificationDetails>& details) {}
457 456
458 // Invoked when theme color is changed to |theme_color|. 457 // Invoked when theme color is changed to |theme_color|.
459 virtual void DidChangeThemeColor(SkColor theme_color) {} 458 virtual void DidChangeThemeColor(SkColor theme_color) {}
460 459
461 // Invoked when media is playing or paused. |id| is unique per player and per 460 // Invoked when media is playing or paused. |id| is unique per player and per
462 // RenderFrameHost. There may be multiple players within a RenderFrameHost 461 // RenderFrameHost. There may be multiple players within a RenderFrameHost
463 // and subsequently within a WebContents. MediaStartedPlaying() will always 462 // and subsequently within a WebContents. MediaStartedPlaying() will always
464 // be followed by MediaStoppedPlaying() after player teardown. Observers must 463 // be followed by MediaStoppedPlaying() after player teardown. Observers must
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 void ResetWebContents(); 512 void ResetWebContents();
514 513
515 WebContentsImpl* web_contents_; 514 WebContentsImpl* web_contents_;
516 515
517 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 516 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
518 }; 517 };
519 518
520 } // namespace content 519 } // namespace content
521 520
522 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 521 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698