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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 const WebPreferences& webkit_prefs, | 689 const WebPreferences& webkit_prefs, |
690 SharedRenderViewCounter* counter, | 690 SharedRenderViewCounter* counter, |
691 int32 routing_id, | 691 int32 routing_id, |
692 int64 session_storage_namespace_id, | 692 int64 session_storage_namespace_id, |
693 const string16& frame_name); | 693 const string16& frame_name); |
694 | 694 |
695 // Do not delete directly. This class is reference counted. | 695 // Do not delete directly. This class is reference counted. |
696 virtual ~RenderView(); | 696 virtual ~RenderView(); |
697 | 697 |
698 void UpdateURL(WebKit::WebFrame* frame); | 698 void UpdateURL(WebKit::WebFrame* frame); |
699 void UpdateTitle(WebKit::WebFrame* frame, const string16& title); | 699 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
| 700 WebKit::WebTextDirection title_direction); |
700 void UpdateSessionHistory(WebKit::WebFrame* frame); | 701 void UpdateSessionHistory(WebKit::WebFrame* frame); |
701 | 702 |
702 // Update current main frame's encoding and send it to browser window. | 703 // Update current main frame's encoding and send it to browser window. |
703 // Since we want to let users see the right encoding info from menu | 704 // Since we want to let users see the right encoding info from menu |
704 // before finishing loading, we call the UpdateEncoding in | 705 // before finishing loading, we call the UpdateEncoding in |
705 // a) function:DidCommitLoadForFrame. When this function is called, | 706 // a) function:DidCommitLoadForFrame. When this function is called, |
706 // that means we have got first data. In here we try to get encoding | 707 // that means we have got first data. In here we try to get encoding |
707 // of page if it has been specified in http header. | 708 // of page if it has been specified in http header. |
708 // b) function:DidReceiveTitle. When this function is called, | 709 // b) function:DidReceiveTitle. When this function is called, |
709 // that means we have got specified title. Because in most of webpages, | 710 // that means we have got specified title. Because in most of webpages, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 // bunch of stuff, you should probably create a helper class and put your | 1203 // bunch of stuff, you should probably create a helper class and put your |
1203 // data and methods on that to avoid bloating RenderView more. You can use | 1204 // data and methods on that to avoid bloating RenderView more. You can use |
1204 // the Observer interface to filter IPC messages and receive frame change | 1205 // the Observer interface to filter IPC messages and receive frame change |
1205 // notifications. | 1206 // notifications. |
1206 // --------------------------------------------------------------------------- | 1207 // --------------------------------------------------------------------------- |
1207 | 1208 |
1208 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1209 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1209 }; | 1210 }; |
1210 | 1211 |
1211 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1212 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |