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

Side by Side Diff: content/renderer/render_view.h

Issue 6880073: Plumb direction of document title through IPC layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 const WebPreferences& webkit_prefs, 666 const WebPreferences& webkit_prefs,
667 SharedRenderViewCounter* counter, 667 SharedRenderViewCounter* counter,
668 int32 routing_id, 668 int32 routing_id,
669 int64 session_storage_namespace_id, 669 int64 session_storage_namespace_id,
670 const string16& frame_name); 670 const string16& frame_name);
671 671
672 // Do not delete directly. This class is reference counted. 672 // Do not delete directly. This class is reference counted.
673 virtual ~RenderView(); 673 virtual ~RenderView();
674 674
675 void UpdateURL(WebKit::WebFrame* frame); 675 void UpdateURL(WebKit::WebFrame* frame);
676 void UpdateTitle(WebKit::WebFrame* frame, const string16& title); 676 void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
677 WebKit::WebTextDirection title_direction);
677 void UpdateSessionHistory(WebKit::WebFrame* frame); 678 void UpdateSessionHistory(WebKit::WebFrame* frame);
678 679
679 // Update current main frame's encoding and send it to browser window. 680 // Update current main frame's encoding and send it to browser window.
680 // Since we want to let users see the right encoding info from menu 681 // Since we want to let users see the right encoding info from menu
681 // before finishing loading, we call the UpdateEncoding in 682 // before finishing loading, we call the UpdateEncoding in
682 // a) function:DidCommitLoadForFrame. When this function is called, 683 // a) function:DidCommitLoadForFrame. When this function is called,
683 // that means we have got first data. In here we try to get encoding 684 // that means we have got first data. In here we try to get encoding
684 // of page if it has been specified in http header. 685 // of page if it has been specified in http header.
685 // b) function:DidReceiveTitle. When this function is called, 686 // b) function:DidReceiveTitle. When this function is called,
686 // that means we have got specified title. Because in most of webpages, 687 // that means we have got specified title. Because in most of webpages,
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 // bunch of stuff, you should probably create a helper class and put your 1166 // bunch of stuff, you should probably create a helper class and put your
1166 // data and methods on that to avoid bloating RenderView more. You can use 1167 // data and methods on that to avoid bloating RenderView more. You can use
1167 // the Observer interface to filter IPC messages and receive frame change 1168 // the Observer interface to filter IPC messages and receive frame change
1168 // notifications. 1169 // notifications.
1169 // --------------------------------------------------------------------------- 1170 // ---------------------------------------------------------------------------
1170 1171
1171 DISALLOW_COPY_AND_ASSIGN(RenderView); 1172 DISALLOW_COPY_AND_ASSIGN(RenderView);
1172 }; 1173 };
1173 1174
1174 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1175 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698