| 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 "base/values.h" | 17 #include "base/values.h" |
| 18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
| 19 #include "content/public/common/view_type.h" | 19 #include "content/public/common/view_type.h" |
| 20 #include "content/public/common/window_container_type.h" | 20 #include "content/public/common/window_container_type.h" |
| 21 #include "ipc/ipc_channel.h" | 21 #include "ipc/ipc_channel.h" |
| 22 #include "net/base/load_states.h" | 22 #include "net/base/load_states.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 25 #include "ui/base/javascript_message_type.h" |
| 25 #include "webkit/glue/window_open_disposition.h" | 26 #include "webkit/glue/window_open_disposition.h" |
| 26 | 27 |
| 27 class GURL; | 28 class GURL; |
| 28 class RenderViewHost; | 29 class RenderViewHost; |
| 29 class SkBitmap; | 30 class SkBitmap; |
| 30 class TabContents; | 31 class TabContents; |
| 31 class WebKeyboardEvent; | 32 class WebKeyboardEvent; |
| 32 struct ContextMenuParams; | 33 struct ContextMenuParams; |
| 33 struct NativeWebKeyboardEvent; | 34 struct NativeWebKeyboardEvent; |
| 34 struct ViewHostMsg_CreateWindow_Params; | 35 struct ViewHostMsg_CreateWindow_Params; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 virtual void RequestOpenURL(const GURL& url, | 276 virtual void RequestOpenURL(const GURL& url, |
| 276 const GURL& referrer, | 277 const GURL& referrer, |
| 277 WindowOpenDisposition disposition, | 278 WindowOpenDisposition disposition, |
| 278 int64 source_frame_id) {} | 279 int64 source_frame_id) {} |
| 279 | 280 |
| 280 // A javascript message, confirmation or prompt should be shown. | 281 // A javascript message, confirmation or prompt should be shown. |
| 281 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 282 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 282 const string16& message, | 283 const string16& message, |
| 283 const string16& default_prompt, | 284 const string16& default_prompt, |
| 284 const GURL& frame_url, | 285 const GURL& frame_url, |
| 285 const int flags, | 286 ui::JavascriptMessageType type, |
| 286 IPC::Message* reply_msg, | 287 IPC::Message* reply_msg, |
| 287 bool* did_suppress_message) {} | 288 bool* did_suppress_message) {} |
| 288 | 289 |
| 289 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 290 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
| 290 const string16& message, | 291 const string16& message, |
| 291 IPC::Message* reply_msg) {} | 292 IPC::Message* reply_msg) {} |
| 292 | 293 |
| 293 // Return a dummy RendererPreferences object that will be used by the renderer | 294 // Return a dummy RendererPreferences object that will be used by the renderer |
| 294 // associated with the owning RenderViewHost. | 295 // associated with the owning RenderViewHost. |
| 295 virtual content::RendererPreferences GetRendererPrefs( | 296 virtual content::RendererPreferences GetRendererPrefs( |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 virtual void RequestToLockMouse() {} | 382 virtual void RequestToLockMouse() {} |
| 382 | 383 |
| 383 // Notification that the view has lost the mouse lock. | 384 // Notification that the view has lost the mouse lock. |
| 384 virtual void LostMouseLock() {} | 385 virtual void LostMouseLock() {} |
| 385 | 386 |
| 386 protected: | 387 protected: |
| 387 virtual ~RenderViewHostDelegate() {} | 388 virtual ~RenderViewHostDelegate() {} |
| 388 }; | 389 }; |
| 389 | 390 |
| 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |