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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 5999009: View Source now clones tab state for pinned/app windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | chrome/browser/ui/browser.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) 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_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // Commits the current instant, returning true on success. This is intended 989 // Commits the current instant, returning true on success. This is intended
990 // for use from OpenCurrentURL. 990 // for use from OpenCurrentURL.
991 bool OpenInstant(WindowOpenDisposition disposition); 991 bool OpenInstant(WindowOpenDisposition disposition);
992 992
993 // If this browser should have instant one is created, otherwise does nothing. 993 // If this browser should have instant one is created, otherwise does nothing.
994 void CreateInstantIfNecessary(); 994 void CreateInstantIfNecessary();
995 995
996 // Opens view-source tab for given tab contents. 996 // Opens view-source tab for given tab contents.
997 void ViewSource(TabContentsWrapper* tab); 997 void ViewSource(TabContentsWrapper* tab);
998 998
999 // Inserts contents dupe next to the original contents. This method is used
1000 // to insert duplicate tab and view source tab next to the original tab.
1001 void InsertContentsDupe(
1002 TabContentsWrapper* original_content,
1003 TabContentsWrapper* clone_content);
1004
1005 // Data members ///////////////////////////////////////////////////////////// 999 // Data members /////////////////////////////////////////////////////////////
1006 1000
1007 NotificationRegistrar registrar_; 1001 NotificationRegistrar registrar_;
1008 1002
1009 // This Browser's type. 1003 // This Browser's type.
1010 const Type type_; 1004 const Type type_;
1011 1005
1012 // This Browser's profile. 1006 // This Browser's profile.
1013 Profile* const profile_; 1007 Profile* const profile_;
1014 1008
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 // and we install ourselves as an observer. 1127 // and we install ourselves as an observer.
1134 TabRestoreService* tab_restore_service_; 1128 TabRestoreService* tab_restore_service_;
1135 1129
1136 scoped_ptr<InstantController> instant_; 1130 scoped_ptr<InstantController> instant_;
1137 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1131 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1138 1132
1139 DISALLOW_COPY_AND_ASSIGN(Browser); 1133 DISALLOW_COPY_AND_ASSIGN(Browser);
1140 }; 1134 };
1141 1135
1142 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1136 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698