| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_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/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "content/common/content_export.h" |
| 17 #include "content/common/view_types.h" | 18 #include "content/common/view_types.h" |
| 18 #include "content/common/window_container_type.h" | 19 #include "content/common/window_container_type.h" |
| 19 #include "ipc/ipc_channel.h" | 20 #include "ipc/ipc_channel.h" |
| 20 #include "net/base/load_states.h" | 21 #include "net/base/load_states.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | 24 #include "webkit/glue/window_open_disposition.h" |
| 24 | 25 |
| 25 class BackgroundContents; | 26 class BackgroundContents; |
| 26 struct BookmarkNodeData; | 27 struct BookmarkNodeData; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 // | 57 // |
| 57 // An interface implemented by an object interested in knowing about the state | 58 // An interface implemented by an object interested in knowing about the state |
| 58 // of the RenderViewHost. | 59 // of the RenderViewHost. |
| 59 // | 60 // |
| 60 // This interface currently encompasses every type of message that was | 61 // This interface currently encompasses every type of message that was |
| 61 // previously being sent by TabContents itself. Some of these notifications | 62 // previously being sent by TabContents itself. Some of these notifications |
| 62 // may not be relevant to all users of RenderViewHost and we should consider | 63 // may not be relevant to all users of RenderViewHost and we should consider |
| 63 // exposing a more generic Send function on RenderViewHost and a response | 64 // exposing a more generic Send function on RenderViewHost and a response |
| 64 // listener here to serve that need. | 65 // listener here to serve that need. |
| 65 // | 66 // |
| 66 class RenderViewHostDelegate : public IPC::Channel::Listener { | 67 class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener { |
| 67 public: | 68 public: |
| 68 // View ---------------------------------------------------------------------- | 69 // View ---------------------------------------------------------------------- |
| 69 // Functions that can be routed directly to a view-specific class. | 70 // Functions that can be routed directly to a view-specific class. |
| 70 class View { | 71 class CONTENT_EXPORT View { |
| 71 public: | 72 public: |
| 72 // The page is trying to open a new page (e.g. a popup window). The window | 73 // The page is trying to open a new page (e.g. a popup window). The window |
| 73 // should be created associated with the given route, but it should not be | 74 // should be created associated with the given route, but it should not be |
| 74 // shown yet. That should happen in response to ShowCreatedWindow. | 75 // shown yet. That should happen in response to ShowCreatedWindow. |
| 75 // |params.window_container_type| describes the type of RenderViewHost | 76 // |params.window_container_type| describes the type of RenderViewHost |
| 76 // container that is requested -- in particular, the window.open call may | 77 // container that is requested -- in particular, the window.open call may |
| 77 // have specified 'background' and 'persistent' in the feature string. | 78 // have specified 'background' and 'persistent' in the feature string. |
| 78 // | 79 // |
| 79 // The passed |params.frame_name| parameter is the name parameter that was | 80 // The passed |params.frame_name| parameter is the name parameter that was |
| 80 // passed to window.open(), and will be empty if none was passed. | 81 // passed to window.open(), and will be empty if none was passed. |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 const ViewHostMsg_RunFileChooser_Params& params) {} | 374 const ViewHostMsg_RunFileChooser_Params& params) {} |
| 374 | 375 |
| 375 // Notification that the page wants to go into or out of fullscreen mode. | 376 // Notification that the page wants to go into or out of fullscreen mode. |
| 376 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 377 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 377 | 378 |
| 378 protected: | 379 protected: |
| 379 virtual ~RenderViewHostDelegate() {} | 380 virtual ~RenderViewHostDelegate() {} |
| 380 }; | 381 }; |
| 381 | 382 |
| 382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 383 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |