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

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

Issue 4145013: DOMUI: Use ShowSingletonTab to open the settings tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: csilv review fixes. Created 10 years, 1 month 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_navigator.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_NAVIGATOR_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // TODO(beng): Figure out if this can be used to create Browser windows 109 // TODO(beng): Figure out if this can be used to create Browser windows
110 // for other callsites that use set_override_bounds, or 110 // for other callsites that use set_override_bounds, or
111 // remove this comment. 111 // remove this comment.
112 gfx::Rect window_bounds; 112 gfx::Rect window_bounds;
113 113
114 // True if the target window should be made visible at the end of the call 114 // True if the target window should be made visible at the end of the call
115 // to Navigate(). This activates the window if it was already visible. 115 // to Navigate(). This activates the window if it was already visible.
116 // Default is false. 116 // Default is false.
117 bool show_window; 117 bool show_window;
118 118
119 // True if the paths of the target content's URL and |url| should be ignored
120 // when locating a singleton tab.
121 bool ignore_path;
122
119 // [in] Specifies a Browser object where the navigation could occur or the 123 // [in] Specifies a Browser object where the navigation could occur or the
120 // tab could be added. Navigate() is not obliged to use this Browser if 124 // tab could be added. Navigate() is not obliged to use this Browser if
121 // it is not compatible with the operation being performed. If NULL, 125 // it is not compatible with the operation being performed. If NULL,
122 // |profile| should be specified to find or create a matching Browser. 126 // |profile| should be specified to find or create a matching Browser.
123 // [out] Specifies the Browser object where the navigation occurred or the 127 // [out] Specifies the Browser object where the navigation occurred or the
124 // tab was added. Guaranteed non-NULL unless the disposition did not 128 // tab was added. Guaranteed non-NULL unless the disposition did not
125 // require a navigation, in which case this is set to NULL 129 // require a navigation, in which case this is set to NULL
126 // (SUPPRESS_OPEN, SAVE_TO_DISK, IGNORE_ACTION). 130 // (SUPPRESS_OPEN, SAVE_TO_DISK, IGNORE_ACTION).
127 // Note: If |show_window| is set to false and a new Browser is created by 131 // Note: If |show_window| is set to false and a new Browser is created by
128 // Navigate(), the caller is responsible for showing it so that its 132 // Navigate(), the caller is responsible for showing it so that its
129 // window can assume responsibility for the Browser's lifetime (Browser 133 // window can assume responsibility for the Browser's lifetime (Browser
130 // objects are deleted when the user closes a visible browser window). 134 // objects are deleted when the user closes a visible browser window).
131 Browser* browser; 135 Browser* browser;
132 136
133 // If |browser| == NULL, specifies a Profile to use when finding or 137 // If |browser| == NULL, specifies a Profile to use when finding or
134 // creating a Browser. 138 // creating a Browser.
135 Profile* profile; 139 Profile* profile;
136 140
137 private: 141 private:
138 NavigateParams(); 142 NavigateParams();
139 }; 143 };
140 144
141 // Navigates according to the configuration specified in |params|. 145 // Navigates according to the configuration specified in |params|.
142 void Navigate(NavigateParams* params); 146 void Navigate(NavigateParams* params);
143 147
144 } // namespace browser 148 } // namespace browser
145 149
146 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 150 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698