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

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

Issue 2263043002: android_webview: Let AwContents manage TouchHandleDrawable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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"
11 #include "base/process/kill.h" 11 #include "base/process/kill.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/common/frame_navigate_params.h" 15 #include "content/public/common/frame_navigate_params.h"
16 #include "content/public/common/media_metadata.h" 16 #include "content/public/common/media_metadata.h"
17 #include "content/public/common/resource_type.h" 17 #include "content/public/common/resource_type.h"
18 #include "content/public/common/security_style.h" 18 #include "content/public/common/security_style.h"
19 #include "ipc/ipc_listener.h" 19 #include "ipc/ipc_listener.h"
20 #include "ipc/ipc_sender.h" 20 #include "ipc/ipc_sender.h"
21 #include "third_party/WebKit/public/web/WebInputEvent.h" 21 #include "third_party/WebKit/public/web/WebInputEvent.h"
22 #include "third_party/skia/include/core/SkColor.h" 22 #include "third_party/skia/include/core/SkColor.h"
23 #include "ui/base/page_transition_types.h" 23 #include "ui/base/page_transition_types.h"
24 #include "ui/base/window_open_disposition.h" 24 #include "ui/base/window_open_disposition.h"
25 25
26 namespace ui {
27 class TouchHandleDrawable;
28 }
29
26 namespace content { 30 namespace content {
27 31
28 class NavigationEntry; 32 class NavigationEntry;
29 class NavigationHandle; 33 class NavigationHandle;
30 class RenderFrameHost; 34 class RenderFrameHost;
31 class RenderViewHost; 35 class RenderViewHost;
32 class RenderWidgetHost; 36 class RenderWidgetHost;
33 class WebContents; 37 class WebContents;
34 class WebContentsImpl; 38 class WebContentsImpl;
35 struct AXEventNotificationDetails; 39 struct AXEventNotificationDetails;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // Invoked when a user cancels a before unload dialog. 450 // Invoked when a user cancels a before unload dialog.
447 virtual void BeforeUnloadDialogCancelled() {} 451 virtual void BeforeUnloadDialogCancelled() {}
448 452
449 // Invoked when an accessibility event is received from the renderer process. 453 // Invoked when an accessibility event is received from the renderer process.
450 virtual void AccessibilityEventReceived( 454 virtual void AccessibilityEventReceived(
451 const std::vector<AXEventNotificationDetails>& details) {} 455 const std::vector<AXEventNotificationDetails>& details) {}
452 456
453 // Invoked when theme color is changed to |theme_color|. 457 // Invoked when theme color is changed to |theme_color|.
454 virtual void DidChangeThemeColor(SkColor theme_color) {} 458 virtual void DidChangeThemeColor(SkColor theme_color) {}
455 459
460 virtual void DidCreateTouchHandle(ui::TouchHandleDrawable* drawable) {}
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) {}
463 virtual void MediaStoppedPlaying(const MediaPlayerId& id) {} 469 virtual void MediaStoppedPlaying(const MediaPlayerId& id) {}
464 470
465 // Invoked when media session has changed its state. 471 // Invoked when media session has changed its state.
(...skipping 41 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

Powered by Google App Engine
This is Rietveld 408576698