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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/process/kill.h" | 15 #include "base/process/kill.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/supports_user_data.h" | 17 #include "base/supports_user_data.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/invalidate_type.h" | 20 #include "content/public/browser/invalidate_type.h" |
21 #include "content/public/browser/navigation_controller.h" | 21 #include "content/public/browser/navigation_controller.h" |
22 #include "content/public/browser/page_navigator.h" | 22 #include "content/public/browser/page_navigator.h" |
23 #include "content/public/browser/save_page_type.h" | 23 #include "content/public/browser/save_page_type.h" |
24 #include "content/public/browser/screen_orientation_delegate.h" | 24 #include "content/public/browser/screen_orientation_delegate.h" |
25 #include "content/public/browser/site_instance.h" | 25 #include "content/public/browser/site_instance.h" |
26 #include "content/public/browser/web_ui.h" | 26 #include "content/public/browser/web_ui.h" |
27 #include "content/public/common/stop_find_action.h" | 27 #include "content/public/common/stop_find_action.h" |
28 #include "ipc/ipc_sender.h" | 28 #include "ipc/ipc_sender.h" |
29 #include "third_party/skia/include/core/SkColor.h" | 29 #include "third_party/skia/include/core/SkColor.h" |
| 30 #include "ui/accessibility/ax_tree_update.h" |
30 #include "ui/base/window_open_disposition.h" | 31 #include "ui/base/window_open_disposition.h" |
31 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
32 #include "ui/gfx/native_widget_types.h" | 33 #include "ui/gfx/native_widget_types.h" |
33 | 34 |
34 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) |
35 #include "base/android/scoped_java_ref.h" | 36 #include "base/android/scoped_java_ref.h" |
36 #endif | 37 #endif |
37 | 38 |
38 namespace base { | 39 namespace base { |
39 class TimeTicks; | 40 class TimeTicks; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Returns the currently active RenderWidgetHostView. This may change over | 272 // Returns the currently active RenderWidgetHostView. This may change over |
272 // time and can be nullptr (during setup and teardown). | 273 // time and can be nullptr (during setup and teardown). |
273 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; | 274 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; |
274 | 275 |
275 // Returns the outermost RenderWidgetHostView. This will return the platform | 276 // Returns the outermost RenderWidgetHostView. This will return the platform |
276 // specific RenderWidgetHostView (as opposed to | 277 // specific RenderWidgetHostView (as opposed to |
277 // RenderWidgetHostViewChildFrame), which can be used to create context | 278 // RenderWidgetHostViewChildFrame), which can be used to create context |
278 // menus. | 279 // menus. |
279 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; | 280 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; |
280 | 281 |
| 282 // Request a one-time snapshot of the accessibility tree without changing |
| 283 // the accessibility mode. |
| 284 using AXTreeSnapshotCallback = base::Callback<void(const ui::AXTreeUpdate&)>; |
| 285 virtual void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) = 0; |
| 286 |
281 // Causes the current page to be closed, including running its onunload event | 287 // Causes the current page to be closed, including running its onunload event |
282 // handler. | 288 // handler. |
283 virtual void ClosePage() = 0; | 289 virtual void ClosePage() = 0; |
284 | 290 |
285 // Returns the currently active fullscreen widget. If there is none, returns | 291 // Returns the currently active fullscreen widget. If there is none, returns |
286 // nullptr. | 292 // nullptr. |
287 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; | 293 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; |
288 | 294 |
289 // Returns the theme color for the underlying content as set by the | 295 // Returns the theme color for the underlying content as set by the |
290 // theme-color meta tag. | 296 // theme-color meta tag. |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 793 |
788 private: | 794 private: |
789 // This interface should only be implemented inside content. | 795 // This interface should only be implemented inside content. |
790 friend class WebContentsImpl; | 796 friend class WebContentsImpl; |
791 WebContents() {} | 797 WebContents() {} |
792 }; | 798 }; |
793 | 799 |
794 } // namespace content | 800 } // namespace content |
795 | 801 |
796 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 802 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |