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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 const WebPreferences& webkit_prefs, | 682 const WebPreferences& webkit_prefs, |
683 SharedRenderViewCounter* counter, | 683 SharedRenderViewCounter* counter, |
684 int32 routing_id, | 684 int32 routing_id, |
685 int64 session_storage_namespace_id, | 685 int64 session_storage_namespace_id, |
686 const string16& frame_name); | 686 const string16& frame_name); |
687 | 687 |
688 // Do not delete directly. This class is reference counted. | 688 // Do not delete directly. This class is reference counted. |
689 virtual ~RenderView(); | 689 virtual ~RenderView(); |
690 | 690 |
691 void UpdateURL(WebKit::WebFrame* frame); | 691 void UpdateURL(WebKit::WebFrame* frame); |
692 void UpdateTitle(WebKit::WebFrame* frame, const string16& title); | 692 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
| 693 WebKit::WebTextDirection title_direction); |
693 void UpdateSessionHistory(WebKit::WebFrame* frame); | 694 void UpdateSessionHistory(WebKit::WebFrame* frame); |
694 | 695 |
695 // Update current main frame's encoding and send it to browser window. | 696 // Update current main frame's encoding and send it to browser window. |
696 // Since we want to let users see the right encoding info from menu | 697 // Since we want to let users see the right encoding info from menu |
697 // before finishing loading, we call the UpdateEncoding in | 698 // before finishing loading, we call the UpdateEncoding in |
698 // a) function:DidCommitLoadForFrame. When this function is called, | 699 // a) function:DidCommitLoadForFrame. When this function is called, |
699 // that means we have got first data. In here we try to get encoding | 700 // that means we have got first data. In here we try to get encoding |
700 // of page if it has been specified in http header. | 701 // of page if it has been specified in http header. |
701 // b) function:DidReceiveTitle. When this function is called, | 702 // b) function:DidReceiveTitle. When this function is called, |
702 // that means we have got specified title. Because in most of webpages, | 703 // that means we have got specified title. Because in most of webpages, |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 // bunch of stuff, you should probably create a helper class and put your | 1194 // bunch of stuff, you should probably create a helper class and put your |
1194 // data and methods on that to avoid bloating RenderView more. You can use | 1195 // data and methods on that to avoid bloating RenderView more. You can use |
1195 // the Observer interface to filter IPC messages and receive frame change | 1196 // the Observer interface to filter IPC messages and receive frame change |
1196 // notifications. | 1197 // notifications. |
1197 // --------------------------------------------------------------------------- | 1198 // --------------------------------------------------------------------------- |
1198 | 1199 |
1199 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1200 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1200 }; | 1201 }; |
1201 | 1202 |
1202 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1203 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |