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

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

Issue 6878089: Add and use a base::i18n::StringWithDirection for carrying titles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 9 years, 8 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) 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/memory/ref_counted.h" 13 #include "base/memory/ref_counted.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 "chrome/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
17 #include "chrome/common/translate_errors.h" 17 #include "chrome/common/translate_errors.h"
18 #include "chrome/common/view_types.h" 18 #include "chrome/common/view_types.h"
19 #include "content/common/dom_storage_common.h" 19 #include "content/common/dom_storage_common.h"
20 #include "content/common/window_container_type.h" 20 #include "content/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 "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
26 #include "webkit/glue/window_open_disposition.h" 25 #include "webkit/glue/window_open_disposition.h"
27 26
28 27
29 class AutomationResourceRoutingDelegate; 28 class AutomationResourceRoutingDelegate;
30 class BackgroundContents; 29 class BackgroundContents;
31 struct BookmarkNodeData; 30 struct BookmarkNodeData;
32 class BookmarkNode; 31 class BookmarkNode;
33 struct ContextMenuParams; 32 struct ContextMenuParams;
34 class FilePath; 33 class FilePath;
35 class GURL; 34 class GURL;
(...skipping 13 matching lines...) Expand all
49 struct ExtensionHostMsg_DomMessage_Params; 48 struct ExtensionHostMsg_DomMessage_Params;
50 struct ViewHostMsg_CreateWindow_Params; 49 struct ViewHostMsg_CreateWindow_Params;
51 struct ViewHostMsg_FrameNavigate_Params; 50 struct ViewHostMsg_FrameNavigate_Params;
52 struct WebApplicationInfo; 51 struct WebApplicationInfo;
53 struct WebDropData; 52 struct WebDropData;
54 struct WebMenuItem; 53 struct WebMenuItem;
55 class WebKeyboardEvent; 54 class WebKeyboardEvent;
56 struct WebPreferences; 55 struct WebPreferences;
57 56
58 namespace base { 57 namespace base {
58 namespace i18n {
59 class String16WithDirection;
60 }
59 class WaitableEvent; 61 class WaitableEvent;
60 } 62 }
61 63
62 namespace gfx { 64 namespace gfx {
63 class Point; 65 class Point;
64 class Rect; 66 class Rect;
65 class Size; 67 class Size;
66 } 68 }
67 69
68 namespace IPC { 70 namespace IPC {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 const ViewHostMsg_FrameNavigate_Params& params) {} 432 const ViewHostMsg_FrameNavigate_Params& params) {}
431 433
432 // The state for the page changed and should be updated. 434 // The state for the page changed and should be updated.
433 virtual void UpdateState(RenderViewHost* render_view_host, 435 virtual void UpdateState(RenderViewHost* render_view_host,
434 int32 page_id, 436 int32 page_id,
435 const std::string& state) {} 437 const std::string& state) {}
436 438
437 // The page's title was changed and should be updated. 439 // The page's title was changed and should be updated.
438 virtual void UpdateTitle(RenderViewHost* render_view_host, 440 virtual void UpdateTitle(RenderViewHost* render_view_host,
439 int32 page_id, 441 int32 page_id,
440 const string16& title, 442 const base::i18n::String16WithDirection& title) {}
441 WebKit::WebTextDirection title_direction) {}
442 443
443 // The page's encoding was changed and should be updated. 444 // The page's encoding was changed and should be updated.
444 virtual void UpdateEncoding(RenderViewHost* render_view_host, 445 virtual void UpdateEncoding(RenderViewHost* render_view_host,
445 const std::string& encoding) {} 446 const std::string& encoding) {}
446 447
447 // The destination URL has changed should be updated 448 // The destination URL has changed should be updated
448 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} 449 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {}
449 450
450 // Inspector setting was changed and should be persisted. 451 // Inspector setting was changed and should be persisted.
451 virtual void UpdateInspectorSetting(const std::string& key, 452 virtual void UpdateInspectorSetting(const std::string& key,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 // Returns true if the delegate will take care of asking the user, otherwise 574 // Returns true if the delegate will take care of asking the user, otherwise
574 // the caller will do the default behavior. 575 // the caller will do the default behavior.
575 bool RequestDesktopNotificationPermission(const GURL& source_origin, 576 bool RequestDesktopNotificationPermission(const GURL& source_origin,
576 int callback_context); 577 int callback_context);
577 578
578 protected: 579 protected:
579 virtual ~RenderViewHostDelegate() {} 580 virtual ~RenderViewHostDelegate() {}
580 }; 581 };
581 582
582 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 583 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698