| 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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback.h" | 16 #include "base/callback.h" |
| 17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" | 20 #include "base/macros.h" |
| 21 #include "base/process/kill.h" | 21 #include "base/process/kill.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "content/browser/renderer_host/render_widget_host_impl.h" | 23 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 24 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" | 24 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" |
| 25 #include "content/browser/site_instance_impl.h" | 25 #include "content/browser/site_instance_impl.h" |
| 26 #include "content/common/drag_event_source_info.h" | |
| 27 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
| 28 #include "content/public/browser/render_process_host_observer.h" | 27 #include "content/public/browser/render_process_host_observer.h" |
| 29 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
| 30 #include "content/public/common/window_container_type.h" | 29 #include "content/public/common/window_container_type.h" |
| 31 #include "net/base/load_states.h" | 30 #include "net/base/load_states.h" |
| 32 #include "third_party/WebKit/public/web/WebAXEnums.h" | 31 #include "third_party/WebKit/public/web/WebAXEnums.h" |
| 33 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 32 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 34 #include "third_party/WebKit/public/web/WebPopupType.h" | 33 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 35 #include "third_party/skia/include/core/SkColor.h" | 34 #include "third_party/skia/include/core/SkColor.h" |
| 36 #include "ui/base/window_open_disposition.h" | 35 #include "ui/base/window_open_disposition.h" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void OnShowFullscreenWidget(int route_id); | 283 void OnShowFullscreenWidget(int route_id); |
| 285 void OnRenderProcessGone(int status, int error_code); | 284 void OnRenderProcessGone(int status, int error_code); |
| 286 void OnUpdateState(const PageState& state); | 285 void OnUpdateState(const PageState& state); |
| 287 void OnUpdateTargetURL(const GURL& url); | 286 void OnUpdateTargetURL(const GURL& url); |
| 288 void OnClose(); | 287 void OnClose(); |
| 289 void OnRequestMove(const gfx::Rect& pos); | 288 void OnRequestMove(const gfx::Rect& pos); |
| 290 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); | 289 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); |
| 291 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 290 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 292 void OnPasteFromSelectionClipboard(); | 291 void OnPasteFromSelectionClipboard(); |
| 293 void OnRouteCloseEvent(); | 292 void OnRouteCloseEvent(); |
| 294 void OnStartDragging(const DropData& drop_data, | |
| 295 blink::WebDragOperationsMask operations_allowed, | |
| 296 const SkBitmap& bitmap, | |
| 297 const gfx::Vector2d& bitmap_offset_in_dip, | |
| 298 const DragEventSourceInfo& event_info); | |
| 299 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); | 293 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); |
| 300 void OnTakeFocus(bool reverse); | 294 void OnTakeFocus(bool reverse); |
| 301 void OnFocusedNodeChanged(bool is_editable_node, | 295 void OnFocusedNodeChanged(bool is_editable_node, |
| 302 const gfx::Rect& node_bounds_in_viewport); | 296 const gfx::Rect& node_bounds_in_viewport); |
| 303 void OnClosePageACK(); | 297 void OnClosePageACK(); |
| 304 void OnDidZoomURL(double zoom_level, const GURL& url); | 298 void OnDidZoomURL(double zoom_level, const GURL& url); |
| 305 void OnFocusedNodeTouched(bool editable); | 299 void OnFocusedNodeTouched(bool editable); |
| 306 void OnFocus(); | 300 void OnFocus(); |
| 307 | 301 |
| 308 private: | 302 private: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 bool render_view_ready_on_process_launch_; | 387 bool render_view_ready_on_process_launch_; |
| 394 | 388 |
| 395 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 389 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 396 | 390 |
| 397 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 391 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 398 }; | 392 }; |
| 399 | 393 |
| 400 } // namespace content | 394 } // namespace content |
| 401 | 395 |
| 402 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 396 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |