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

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

Issue 2255093005: Pass accessible location change messages to the automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative fix to cast_shell Created 4 years, 3 months 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 15 matching lines...) Expand all
26 namespace content { 26 namespace content {
27 27
28 class NavigationEntry; 28 class NavigationEntry;
29 class NavigationHandle; 29 class NavigationHandle;
30 class RenderFrameHost; 30 class RenderFrameHost;
31 class RenderViewHost; 31 class RenderViewHost;
32 class RenderWidgetHost; 32 class RenderWidgetHost;
33 class WebContents; 33 class WebContents;
34 class WebContentsImpl; 34 class WebContentsImpl;
35 struct AXEventNotificationDetails; 35 struct AXEventNotificationDetails;
36 struct AXLocationChangeNotificationDetails;
36 struct FaviconURL; 37 struct FaviconURL;
37 struct FrameNavigateParams; 38 struct FrameNavigateParams;
38 struct LoadCommittedDetails; 39 struct LoadCommittedDetails;
39 struct Referrer; 40 struct Referrer;
40 struct ResourceRedirectDetails; 41 struct ResourceRedirectDetails;
41 struct ResourceRequestDetails; 42 struct ResourceRequestDetails;
42 struct SecurityStyleExplanations; 43 struct SecurityStyleExplanations;
43 44
44 // An observer API implemented by classes which are interested in various page 45 // An observer API implemented by classes which are interested in various page
45 // load events from WebContents. They also get a chance to filter IPC messages. 46 // load events from WebContents. They also get a chance to filter IPC messages.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // process. 444 // process.
444 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} 445 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
445 446
446 // Invoked when a user cancels a before unload dialog. 447 // Invoked when a user cancels a before unload dialog.
447 virtual void BeforeUnloadDialogCancelled() {} 448 virtual void BeforeUnloadDialogCancelled() {}
448 449
449 // Invoked when an accessibility event is received from the renderer process. 450 // Invoked when an accessibility event is received from the renderer process.
450 virtual void AccessibilityEventReceived( 451 virtual void AccessibilityEventReceived(
451 const std::vector<AXEventNotificationDetails>& details) {} 452 const std::vector<AXEventNotificationDetails>& details) {}
452 453
454 // Invoked when an accessibility location change is received from the
455 // renderer process.
456 virtual void AccessibilityLocationChangesReceived(
457 const std::vector<AXLocationChangeNotificationDetails>& details) {}
458
453 // Invoked when theme color is changed to |theme_color|. 459 // Invoked when theme color is changed to |theme_color|.
454 virtual void DidChangeThemeColor(SkColor theme_color) {} 460 virtual void DidChangeThemeColor(SkColor theme_color) {}
455 461
456 // Invoked when media is playing or paused. |id| is unique per player and per 462 // Invoked when media is playing or paused. |id| is unique per player and per
457 // RenderFrameHost. There may be multiple players within a RenderFrameHost 463 // RenderFrameHost. There may be multiple players within a RenderFrameHost
458 // and subsequently within a WebContents. MediaStartedPlaying() will always 464 // and subsequently within a WebContents. MediaStartedPlaying() will always
459 // be followed by MediaStoppedPlaying() after player teardown. Observers must 465 // be followed by MediaStoppedPlaying() after player teardown. Observers must
460 // release all stored copies of |id| when MediaStoppedPlaying() is received. 466 // release all stored copies of |id| when MediaStoppedPlaying() is received.
461 using MediaPlayerId = std::pair<RenderFrameHost*, int>; 467 using MediaPlayerId = std::pair<RenderFrameHost*, int>;
462 virtual void MediaStartedPlaying(const MediaPlayerId& id) {} 468 virtual void MediaStartedPlaying(const MediaPlayerId& id) {}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void ResetWebContents(); 513 void ResetWebContents();
508 514
509 WebContentsImpl* web_contents_; 515 WebContentsImpl* web_contents_;
510 516
511 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 517 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
512 }; 518 };
513 519
514 } // namespace content 520 } // namespace content
515 521
516 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 522 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/ax_event_notification_details.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698