| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/process/kill.h" | 18 #include "base/process/kill.h" |
| 19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
| 21 #include "cc/output/compositor_frame.h" | 21 #include "cc/output/compositor_frame.h" |
| 22 #include "components/viz/common/surfaces/surface_id.h" | 22 #include "components/viz/common/surfaces/surface_id.h" |
| 23 #include "content/browser/renderer_host/event_with_latency_info.h" | 23 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
| 25 #include "content/common/input/input_event_ack_state.h" | 25 #include "content/common/input/input_event_ack_state.h" |
| 26 #include "content/public/browser/render_widget_host_view.h" | 26 #include "content/public/browser/render_widget_host_view.h" |
| 27 #include "content/public/common/screen_info.h" | 27 #include "content/public/common/screen_info.h" |
| 28 #include "ipc/ipc_listener.h" | 28 #include "ipc/ipc_listener.h" |
| 29 #include "services/viz/public/interfaces/compositing/compositor_frame_sink.mojom
.h" | 29 #include "services/viz/public/interfaces/compositing/compositor_frame_sink.mojom
.h" |
| 30 #include "services/viz/public/interfaces/hit_test/target_frame_for_input_delegat
e.mojom.h" |
| 30 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 31 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 31 #include "third_party/WebKit/public/web/WebPopupType.h" | 32 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 32 #include "third_party/WebKit/public/web/WebTextDirection.h" | 33 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 33 #include "third_party/skia/include/core/SkImageInfo.h" | 34 #include "third_party/skia/include/core/SkImageInfo.h" |
| 34 #include "ui/accessibility/ax_tree_id_registry.h" | 35 #include "ui/accessibility/ax_tree_id_registry.h" |
| 35 #include "ui/base/ime/text_input_mode.h" | 36 #include "ui/base/ime/text_input_mode.h" |
| 36 #include "ui/base/ime/text_input_type.h" | 37 #include "ui/base/ime/text_input_type.h" |
| 37 #include "ui/display/display.h" | 38 #include "ui/display/display.h" |
| 38 #include "ui/gfx/geometry/rect.h" | 39 #include "ui/gfx/geometry/rect.h" |
| 39 #include "ui/gfx/native_widget_types.h" | 40 #include "ui/gfx/native_widget_types.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 virtual void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) {} | 221 virtual void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) {} |
| 221 // Informs that the focused DOM node has changed. | 222 // Informs that the focused DOM node has changed. |
| 222 virtual void FocusedNodeChanged(bool is_editable_node, | 223 virtual void FocusedNodeChanged(bool is_editable_node, |
| 223 const gfx::Rect& node_bounds_in_screen) {} | 224 const gfx::Rect& node_bounds_in_screen) {} |
| 224 | 225 |
| 225 // This method is called by RenderWidgetHostImpl when a new | 226 // This method is called by RenderWidgetHostImpl when a new |
| 226 // RendererCompositorFrameSink is created in the renderer. The view is | 227 // RendererCompositorFrameSink is created in the renderer. The view is |
| 227 // expected not to return resources belonging to the old | 228 // expected not to return resources belonging to the old |
| 228 // RendererCompositorFrameSink after this method finishes. | 229 // RendererCompositorFrameSink after this method finishes. |
| 229 virtual void DidCreateNewRendererCompositorFrameSink( | 230 virtual void DidCreateNewRendererCompositorFrameSink( |
| 230 viz::mojom::CompositorFrameSinkClient* | 231 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink, |
| 231 renderer_compositor_frame_sink) = 0; | 232 viz::mojom::TargetFrameForInputDelegate*) = 0; |
| 232 | 233 |
| 233 virtual void SubmitCompositorFrame( | 234 virtual void SubmitCompositorFrame( |
| 234 const viz::LocalSurfaceId& local_surface_id, | 235 const viz::LocalSurfaceId& local_surface_id, |
| 235 cc::CompositorFrame frame) = 0; | 236 cc::CompositorFrame frame) = 0; |
| 236 | 237 |
| 237 virtual void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) {} | 238 virtual void OnDidNotProduceFrame(const viz::BeginFrameAck& ack) {} |
| 238 virtual void OnSurfaceChanged(const viz::SurfaceInfo& surface_info) {} | 239 virtual void OnSurfaceChanged(const viz::SurfaceInfo& surface_info) {} |
| 239 | 240 |
| 240 // This method exists to allow removing of displayed graphics, after a new | 241 // This method exists to allow removing of displayed graphics, after a new |
| 241 // page has been loaded, to prevent the displayed URL from being out of sync | 242 // page has been loaded, to prevent the displayed URL from being out of sync |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 499 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 499 | 500 |
| 500 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 501 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 501 | 502 |
| 502 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 503 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 503 }; | 504 }; |
| 504 | 505 |
| 505 } // namespace content | 506 } // namespace content |
| 506 | 507 |
| 507 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 508 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |