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> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 struct ExtensionHostMsg_DomMessage_Params; | 48 struct ExtensionHostMsg_DomMessage_Params; |
49 struct ViewHostMsg_CreateWindow_Params; | 49 struct ViewHostMsg_CreateWindow_Params; |
50 struct ViewHostMsg_FrameNavigate_Params; | 50 struct ViewHostMsg_FrameNavigate_Params; |
51 struct WebApplicationInfo; | 51 struct WebApplicationInfo; |
52 struct WebDropData; | 52 struct WebDropData; |
53 struct WebMenuItem; | 53 struct WebMenuItem; |
54 class WebKeyboardEvent; | 54 class WebKeyboardEvent; |
55 struct WebPreferences; | 55 struct WebPreferences; |
56 | 56 |
57 namespace base { | 57 namespace base { |
58 namespace i18n { | |
59 class String16WithDirection; | |
60 } | |
61 class WaitableEvent; | 58 class WaitableEvent; |
62 } | 59 } |
63 | 60 |
64 namespace gfx { | 61 namespace gfx { |
65 class Point; | 62 class Point; |
66 class Rect; | 63 class Rect; |
67 class Size; | 64 class Size; |
68 } | 65 } |
69 | 66 |
70 namespace IPC { | 67 namespace IPC { |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 const ViewHostMsg_FrameNavigate_Params& params) {} | 429 const ViewHostMsg_FrameNavigate_Params& params) {} |
433 | 430 |
434 // The state for the page changed and should be updated. | 431 // The state for the page changed and should be updated. |
435 virtual void UpdateState(RenderViewHost* render_view_host, | 432 virtual void UpdateState(RenderViewHost* render_view_host, |
436 int32 page_id, | 433 int32 page_id, |
437 const std::string& state) {} | 434 const std::string& state) {} |
438 | 435 |
439 // The page's title was changed and should be updated. | 436 // The page's title was changed and should be updated. |
440 virtual void UpdateTitle(RenderViewHost* render_view_host, | 437 virtual void UpdateTitle(RenderViewHost* render_view_host, |
441 int32 page_id, | 438 int32 page_id, |
442 const base::i18n::String16WithDirection& title) {} | 439 const std::wstring& title) {} |
443 | 440 |
444 // The page's encoding was changed and should be updated. | 441 // The page's encoding was changed and should be updated. |
445 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 442 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
446 const std::string& encoding) {} | 443 const std::string& encoding) {} |
447 | 444 |
448 // The destination URL has changed should be updated | 445 // The destination URL has changed should be updated |
449 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 446 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
450 | 447 |
451 // Inspector setting was changed and should be persisted. | 448 // Inspector setting was changed and should be persisted. |
452 virtual void UpdateInspectorSetting(const std::string& key, | 449 virtual void UpdateInspectorSetting(const std::string& key, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 // Returns true if the delegate will take care of asking the user, otherwise | 571 // Returns true if the delegate will take care of asking the user, otherwise |
575 // the caller will do the default behavior. | 572 // the caller will do the default behavior. |
576 bool RequestDesktopNotificationPermission(const GURL& source_origin, | 573 bool RequestDesktopNotificationPermission(const GURL& source_origin, |
577 int callback_context); | 574 int callback_context); |
578 | 575 |
579 protected: | 576 protected: |
580 virtual ~RenderViewHostDelegate() {} | 577 virtual ~RenderViewHostDelegate() {} |
581 }; | 578 }; |
582 | 579 |
583 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |