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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 6894009: Change NavigationEntry's title fields to carry the text direction. (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
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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 const ViewHostMsg_FrameNavigate_Params& params); 766 const ViewHostMsg_FrameNavigate_Params& params);
767 767
768 // Saves the given title to the navigation entry and does associated work. It 768 // Saves the given title to the navigation entry and does associated work. It
769 // will update history and the view for the new title, and also synthesize 769 // will update history and the view for the new title, and also synthesize
770 // titles for file URLs that have none (so we require that the URL of the 770 // titles for file URLs that have none (so we require that the URL of the
771 // entry already be set). 771 // entry already be set).
772 // 772 //
773 // This is used as the backend for state updates, which include a new title, 773 // This is used as the backend for state updates, which include a new title,
774 // or the dedicated set title message. It returns true if the new title is 774 // or the dedicated set title message. It returns true if the new title is
775 // different and was therefore updated. 775 // different and was therefore updated.
776 bool UpdateTitleForEntry(NavigationEntry* entry, const std::wstring& title); 776 bool UpdateTitleForEntry(NavigationEntry* entry,
777 const base::i18n::String16WithDirection& title);
777 778
778 // Causes the TabContents to navigate in the right renderer to |entry|, which 779 // Causes the TabContents to navigate in the right renderer to |entry|, which
779 // must be already part of the entries in the navigation controller. 780 // must be already part of the entries in the navigation controller.
780 // This does not change the NavigationController state. 781 // This does not change the NavigationController state.
781 bool NavigateToEntry(const NavigationEntry& entry, 782 bool NavigateToEntry(const NavigationEntry& entry,
782 NavigationController::ReloadType reload_type); 783 NavigationController::ReloadType reload_type);
783 784
784 // Misc non-view stuff ------------------------------------------------------- 785 // Misc non-view stuff -------------------------------------------------------
785 786
786 // Helper functions for sending notifications. 787 // Helper functions for sending notifications.
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 ObserverList<TabContentsObserver> observers_; 1095 ObserverList<TabContentsObserver> observers_;
1095 1096
1096 // Content restrictions, used to disable print/copy etc based on content's 1097 // Content restrictions, used to disable print/copy etc based on content's
1097 // (full-page plugins for now only) permissions. 1098 // (full-page plugins for now only) permissions.
1098 int content_restrictions_; 1099 int content_restrictions_;
1099 1100
1100 DISALLOW_COPY_AND_ASSIGN(TabContents); 1101 DISALLOW_COPY_AND_ASSIGN(TabContents);
1101 }; 1102 };
1102 1103
1103 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1104 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager_unittest.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698