Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 10451047: content: Move javascript_message_type.h into content/ from ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm CONTEXT_EXPORT Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/common/javascript_message_type.h"
16 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
17 #include "net/base/load_states.h" 18 #include "net/base/load_states.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
19 #include "ui/base/javascript_message_type.h"
20 #include "webkit/glue/window_open_disposition.h" 20 #include "webkit/glue/window_open_disposition.h"
21 21
22 class GURL; 22 class GURL;
23 class SkBitmap; 23 class SkBitmap;
24 class WebContentsImpl; 24 class WebContentsImpl;
25 class WebKeyboardEvent; 25 class WebKeyboardEvent;
26 struct ViewHostMsg_CreateWindow_Params; 26 struct ViewHostMsg_CreateWindow_Params;
27 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 27 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
28 struct ViewHostMsg_FrameNavigate_Params; 28 struct ViewHostMsg_FrameNavigate_Params;
29 struct ViewMsg_PostMessage_Params; 29 struct ViewMsg_PostMessage_Params;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // The page wants to post a message to the active view in this tab. 238 // The page wants to post a message to the active view in this tab.
239 virtual void RouteMessageEvent( 239 virtual void RouteMessageEvent(
240 RenderViewHost* rvh, 240 RenderViewHost* rvh,
241 const ViewMsg_PostMessage_Params& params) {} 241 const ViewMsg_PostMessage_Params& params) {}
242 242
243 // A javascript message, confirmation or prompt should be shown. 243 // A javascript message, confirmation or prompt should be shown.
244 virtual void RunJavaScriptMessage(RenderViewHost* rvh, 244 virtual void RunJavaScriptMessage(RenderViewHost* rvh,
245 const string16& message, 245 const string16& message,
246 const string16& default_prompt, 246 const string16& default_prompt,
247 const GURL& frame_url, 247 const GURL& frame_url,
248 ui::JavascriptMessageType type, 248 content::JavaScriptMessageType type,
249 IPC::Message* reply_msg, 249 IPC::Message* reply_msg,
250 bool* did_suppress_message) {} 250 bool* did_suppress_message) {}
251 251
252 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, 252 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh,
253 const string16& message, 253 const string16& message,
254 bool is_reload, 254 bool is_reload,
255 IPC::Message* reply_msg) {} 255 IPC::Message* reply_msg) {}
256 256
257 // Return a dummy RendererPreferences object that will be used by the renderer 257 // Return a dummy RendererPreferences object that will be used by the renderer
258 // associated with the owning RenderViewHost. 258 // associated with the owning RenderViewHost.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // provided in the supplied params. 381 // provided in the supplied params.
382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} 382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {}
383 383
384 protected: 384 protected:
385 virtual ~RenderViewHostDelegate() {} 385 virtual ~RenderViewHostDelegate() {}
386 }; 386 };
387 387
388 } // namespace content 388 } // namespace content
389 389
390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/javascript_app_modal_dialog_views.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698