OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "content/browser/renderer_host/render_widget_host.h" | 18 #include "content/browser/renderer_host/render_widget_host.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/common/stop_find_action.h" | 21 #include "content/public/common/stop_find_action.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/Source/WebKit/chromium/public/WebConsoleMessage.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 28 #include "ui/base/javascript_message_type.h" |
28 #include "webkit/glue/webaccessibility.h" | 29 #include "webkit/glue/webaccessibility.h" |
29 #include "webkit/glue/window_open_disposition.h" | 30 #include "webkit/glue/window_open_disposition.h" |
30 | 31 |
31 class ChildProcessSecurityPolicy; | 32 class ChildProcessSecurityPolicy; |
32 class FilePath; | 33 class FilePath; |
33 class GURL; | 34 class GURL; |
34 class PowerSaveBlocker; | 35 class PowerSaveBlocker; |
35 class RenderViewHostDelegate; | 36 class RenderViewHostDelegate; |
36 class SessionStorageNamespace; | 37 class SessionStorageNamespace; |
37 class SiteInstance; | 38 class SiteInstance; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 void OnMsgDidChangeNumWheelEvents(int count); | 546 void OnMsgDidChangeNumWheelEvents(int count); |
546 void OnMsgSelectionChanged(const string16& text, | 547 void OnMsgSelectionChanged(const string16& text, |
547 size_t offset, | 548 size_t offset, |
548 const ui::Range& range); | 549 const ui::Range& range); |
549 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, | 550 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, |
550 const gfx::Rect& end_rect); | 551 const gfx::Rect& end_rect); |
551 void OnMsgPasteFromSelectionClipboard(); | 552 void OnMsgPasteFromSelectionClipboard(); |
552 void OnMsgRunJavaScriptMessage(const string16& message, | 553 void OnMsgRunJavaScriptMessage(const string16& message, |
553 const string16& default_prompt, | 554 const string16& default_prompt, |
554 const GURL& frame_url, | 555 const GURL& frame_url, |
555 const int flags, | 556 ui::JavascriptMessageType type, |
556 IPC::Message* reply_msg); | 557 IPC::Message* reply_msg); |
557 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, | 558 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, |
558 const string16& message, | 559 const string16& message, |
559 IPC::Message* reply_msg); | 560 IPC::Message* reply_msg); |
560 void OnMsgStartDragging(const WebDropData& drop_data, | 561 void OnMsgStartDragging(const WebDropData& drop_data, |
561 WebKit::WebDragOperationsMask operations_allowed, | 562 WebKit::WebDragOperationsMask operations_allowed, |
562 const SkBitmap& image, | 563 const SkBitmap& image, |
563 const gfx::Point& image_offset); | 564 const gfx::Point& image_offset); |
564 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); | 565 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); |
565 void OnTargetDropACK(); | 566 void OnTargetDropACK(); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 683 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
683 PowerSaveBlockerMap power_save_blockers_; | 684 PowerSaveBlockerMap power_save_blockers_; |
684 | 685 |
685 // A list of observers that filter messages. Weak references. | 686 // A list of observers that filter messages. Weak references. |
686 ObserverList<content::RenderViewHostObserver> observers_; | 687 ObserverList<content::RenderViewHostObserver> observers_; |
687 | 688 |
688 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 689 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
689 }; | 690 }; |
690 | 691 |
691 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 692 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |