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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/process/kill.h" | 16 #include "base/process/kill.h" |
17 #include "content/browser/renderer_host/render_widget_host_impl.h" | 17 #include "content/browser/renderer_host/render_widget_host_impl.h" |
18 #include "content/browser/site_instance_impl.h" | 18 #include "content/browser/site_instance_impl.h" |
19 #include "content/common/drag_event_source_info.h" | 19 #include "content/common/drag_event_source_info.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/common/window_container_type.h" | 22 #include "content/public/common/window_container_type.h" |
23 #include "net/base/load_states.h" | 23 #include "net/base/load_states.h" |
24 #include "third_party/WebKit/public/web/WebAXEnums.h" | 24 #include "third_party/WebKit/public/web/WebAXEnums.h" |
25 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 25 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
26 #include "third_party/WebKit/public/web/WebPopupType.h" | 26 #include "third_party/WebKit/public/web/WebPopupType.h" |
27 #include "third_party/WebKit/public/web/WebTextDirection.h" | |
28 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
29 #include "ui/accessibility/ax_node_data.h" | 28 #include "ui/accessibility/ax_node_data.h" |
30 #include "ui/base/window_open_disposition.h" | 29 #include "ui/base/window_open_disposition.h" |
31 | 30 |
32 class SkBitmap; | 31 class SkBitmap; |
33 class FrameMsg_Navigate; | 32 class FrameMsg_Navigate; |
34 struct AccessibilityHostMsg_EventParams; | 33 struct AccessibilityHostMsg_EventParams; |
35 struct AccessibilityHostMsg_LocationChangeParams; | 34 struct AccessibilityHostMsg_LocationChangeParams; |
36 struct MediaPlayerAction; | 35 struct MediaPlayerAction; |
37 struct ViewHostMsg_CreateWindow_Params; | 36 struct ViewHostMsg_CreateWindow_Params; |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 void OnShowView(int route_id, | 474 void OnShowView(int route_id, |
476 WindowOpenDisposition disposition, | 475 WindowOpenDisposition disposition, |
477 const gfx::Rect& initial_pos, | 476 const gfx::Rect& initial_pos, |
478 bool user_gesture); | 477 bool user_gesture); |
479 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); | 478 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); |
480 void OnShowFullscreenWidget(int route_id); | 479 void OnShowFullscreenWidget(int route_id); |
481 void OnRunModal(int opener_id, IPC::Message* reply_msg); | 480 void OnRunModal(int opener_id, IPC::Message* reply_msg); |
482 void OnRenderViewReady(); | 481 void OnRenderViewReady(); |
483 void OnRenderProcessGone(int status, int error_code); | 482 void OnRenderProcessGone(int status, int error_code); |
484 void OnUpdateState(int32 page_id, const PageState& state); | 483 void OnUpdateState(int32 page_id, const PageState& state); |
485 void OnUpdateTitle(int32 page_id, | |
486 const base::string16& title, | |
487 blink::WebTextDirection title_direction); | |
488 void OnUpdateEncoding(const std::string& encoding); | |
489 void OnUpdateTargetURL(int32 page_id, const GURL& url); | 484 void OnUpdateTargetURL(int32 page_id, const GURL& url); |
490 void OnClose(); | 485 void OnClose(); |
491 void OnRequestMove(const gfx::Rect& pos); | 486 void OnRequestMove(const gfx::Rect& pos); |
492 void OnDidChangeLoadProgress(double load_progress); | 487 void OnDidChangeLoadProgress(double load_progress); |
493 void OnDocumentAvailableInMainFrame(); | 488 void OnDocumentAvailableInMainFrame(); |
494 void OnToggleFullscreen(bool enter_fullscreen); | 489 void OnToggleFullscreen(bool enter_fullscreen); |
495 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 490 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
496 void OnDidChangeScrollOffset(); | 491 void OnDidChangeScrollOffset(); |
497 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 492 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
498 bool is_pinned_to_right); | 493 bool is_pinned_to_right); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
651 }; | 646 }; |
652 | 647 |
653 #if defined(COMPILER_MSVC) | 648 #if defined(COMPILER_MSVC) |
654 #pragma warning(pop) | 649 #pragma warning(pop) |
655 #endif | 650 #endif |
656 | 651 |
657 } // namespace content | 652 } // namespace content |
658 | 653 |
659 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |