OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 // Saves the given title to the navigation entry and does associated work. It | 816 // Saves the given title to the navigation entry and does associated work. It |
817 // will update history and the view for the new title, and also synthesize | 817 // will update history and the view for the new title, and also synthesize |
818 // titles for file URLs that have none (so we require that the URL of the | 818 // titles for file URLs that have none (so we require that the URL of the |
819 // entry already be set). | 819 // entry already be set). |
820 // | 820 // |
821 // This is used as the backend for state updates, which include a new title, | 821 // This is used as the backend for state updates, which include a new title, |
822 // or the dedicated set title message. It returns true if the new title is | 822 // or the dedicated set title message. It returns true if the new title is |
823 // different and was therefore updated. | 823 // different and was therefore updated. |
824 bool UpdateTitleForEntry(NavigationEntry* entry, const std::wstring& title); | 824 bool UpdateTitleForEntry(NavigationEntry* entry, const std::wstring& title); |
825 | 825 |
826 // Causes the TabContents to navigate in the right renderer to |entry|, which | |
827 // must be already part of the entries in the navigation controller. | |
828 // This does not change the NavigationController state. | |
829 bool NavigateToEntry(const NavigationEntry& entry, | |
830 NavigationController::ReloadType reload_type); | |
831 | |
832 // Misc non-view stuff ------------------------------------------------------- | 826 // Misc non-view stuff ------------------------------------------------------- |
833 | 827 |
834 // Helper functions for sending notifications. | 828 // Helper functions for sending notifications. |
835 void NotifySwapped(); | 829 void NotifySwapped(); |
836 void NotifyConnected(); | 830 void NotifyConnected(); |
837 void NotifyDisconnected(); | 831 void NotifyDisconnected(); |
838 | 832 |
839 // If params has a searchable form, this tries to create a new keyword. | 833 // If params has a searchable form, this tries to create a new keyword. |
840 void GenerateKeywordIfNecessary( | 834 void GenerateKeywordIfNecessary( |
841 const ViewHostMsg_FrameNavigate_Params& params); | 835 const ViewHostMsg_FrameNavigate_Params& params); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 bool displaying_pdf_content_; | 1268 bool displaying_pdf_content_; |
1275 | 1269 |
1276 scoped_ptr<MatchPreview> match_preview_; | 1270 scoped_ptr<MatchPreview> match_preview_; |
1277 | 1271 |
1278 // --------------------------------------------------------------------------- | 1272 // --------------------------------------------------------------------------- |
1279 | 1273 |
1280 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1274 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1281 }; | 1275 }; |
1282 | 1276 |
1283 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1277 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |