| 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/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/common/view_type.h" | 17 #include "content/public/common/view_type.h" |
| 18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 19 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 22 #include "ui/base/javascript_message_type.h" |
| 22 #include "webkit/glue/window_open_disposition.h" | 23 #include "webkit/glue/window_open_disposition.h" |
| 23 | 24 |
| 24 class GURL; | 25 class GURL; |
| 25 class RenderViewHost; | 26 class RenderViewHost; |
| 26 class SkBitmap; | 27 class SkBitmap; |
| 27 class TabContents; | 28 class TabContents; |
| 28 class WebKeyboardEvent; | 29 class WebKeyboardEvent; |
| 29 struct ContextMenuParams; | 30 struct ContextMenuParams; |
| 30 struct GlobalRequestID; | 31 struct GlobalRequestID; |
| 31 struct NativeWebKeyboardEvent; | 32 struct NativeWebKeyboardEvent; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 const content::Referrer& referrer, | 284 const content::Referrer& referrer, |
| 284 WindowOpenDisposition disposition, | 285 WindowOpenDisposition disposition, |
| 285 int64 source_frame_id, | 286 int64 source_frame_id, |
| 286 const GlobalRequestID& old_request_id) {} | 287 const GlobalRequestID& old_request_id) {} |
| 287 | 288 |
| 288 // A javascript message, confirmation or prompt should be shown. | 289 // A javascript message, confirmation or prompt should be shown. |
| 289 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 290 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 290 const string16& message, | 291 const string16& message, |
| 291 const string16& default_prompt, | 292 const string16& default_prompt, |
| 292 const GURL& frame_url, | 293 const GURL& frame_url, |
| 293 const int flags, | 294 ui::JavascriptMessageType type, |
| 294 IPC::Message* reply_msg, | 295 IPC::Message* reply_msg, |
| 295 bool* did_suppress_message) {} | 296 bool* did_suppress_message) {} |
| 296 | 297 |
| 297 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 298 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
| 298 const string16& message, | 299 const string16& message, |
| 299 IPC::Message* reply_msg) {} | 300 IPC::Message* reply_msg) {} |
| 300 | 301 |
| 301 // Return a dummy RendererPreferences object that will be used by the renderer | 302 // Return a dummy RendererPreferences object that will be used by the renderer |
| 302 // associated with the owning RenderViewHost. | 303 // associated with the owning RenderViewHost. |
| 303 virtual content::RendererPreferences GetRendererPrefs( | 304 virtual content::RendererPreferences GetRendererPrefs( |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 virtual void RequestToLockMouse() {} | 390 virtual void RequestToLockMouse() {} |
| 390 | 391 |
| 391 // Notification that the view has lost the mouse lock. | 392 // Notification that the view has lost the mouse lock. |
| 392 virtual void LostMouseLock() {} | 393 virtual void LostMouseLock() {} |
| 393 | 394 |
| 394 protected: | 395 protected: |
| 395 virtual ~RenderViewHostDelegate() {} | 396 virtual ~RenderViewHostDelegate() {} |
| 396 }; | 397 }; |
| 397 | 398 |
| 398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |