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/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/process_util.h" | 15 #include "base/process_util.h" |
15 #include "base/string16.h" | 16 #include "base/string16.h" |
16 #include "content/common/view_types.h" | 17 #include "content/common/view_types.h" |
17 #include "content/common/window_container_type.h" | 18 #include "content/common/window_container_type.h" |
18 #include "ipc/ipc_channel.h" | 19 #include "ipc/ipc_channel.h" |
19 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
22 #include "webkit/glue/window_open_disposition.h" | 23 #include "webkit/glue/window_open_disposition.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 const ViewHostMsg_FrameNavigate_Params& params) {} | 232 const ViewHostMsg_FrameNavigate_Params& params) {} |
232 | 233 |
233 // The state for the page changed and should be updated. | 234 // The state for the page changed and should be updated. |
234 virtual void UpdateState(RenderViewHost* render_view_host, | 235 virtual void UpdateState(RenderViewHost* render_view_host, |
235 int32 page_id, | 236 int32 page_id, |
236 const std::string& state) {} | 237 const std::string& state) {} |
237 | 238 |
238 // The page's title was changed and should be updated. | 239 // The page's title was changed and should be updated. |
239 virtual void UpdateTitle(RenderViewHost* render_view_host, | 240 virtual void UpdateTitle(RenderViewHost* render_view_host, |
240 int32 page_id, | 241 int32 page_id, |
241 const string16& title) {} | 242 const string16& title, |
| 243 base::i18n::TextDirection title_direction) {} |
242 | 244 |
243 // The page's encoding was changed and should be updated. | 245 // The page's encoding was changed and should be updated. |
244 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 246 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
245 const std::string& encoding) {} | 247 const std::string& encoding) {} |
246 | 248 |
247 // The destination URL has changed should be updated | 249 // The destination URL has changed should be updated |
248 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 250 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
249 | 251 |
250 // The page is trying to close the RenderView's representation in the client. | 252 // The page is trying to close the RenderView's representation in the client. |
251 virtual void Close(RenderViewHost* render_view_host) {} | 253 virtual void Close(RenderViewHost* render_view_host) {} |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 virtual void HandleMouseDown() {} | 362 virtual void HandleMouseDown() {} |
361 virtual void HandleMouseLeave() {} | 363 virtual void HandleMouseLeave() {} |
362 virtual void HandleMouseUp() {} | 364 virtual void HandleMouseUp() {} |
363 virtual void HandleMouseActivate() {} | 365 virtual void HandleMouseActivate() {} |
364 | 366 |
365 protected: | 367 protected: |
366 virtual ~RenderViewHostDelegate() {} | 368 virtual ~RenderViewHostDelegate() {} |
367 }; | 369 }; |
368 | 370 |
369 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |