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_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 Loading... |
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_ |
OLD | NEW |