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 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 // Convenience for setting the app extension by id. This does nothing if | 204 // Convenience for setting the app extension by id. This does nothing if |
205 // |extension_app_id| is empty, or an extension can't be found given the | 205 // |extension_app_id| is empty, or an extension can't be found given the |
206 // specified id. | 206 // specified id. |
207 void SetExtensionAppById(const std::string& extension_app_id); | 207 void SetExtensionAppById(const std::string& extension_app_id); |
208 | 208 |
209 Extension* extension_app() const { return extension_app_; } | 209 Extension* extension_app() const { return extension_app_; } |
210 bool is_app() const { return extension_app_ != NULL; } | 210 bool is_app() const { return extension_app_ != NULL; } |
211 | 211 |
212 // If an app extension has been explicitly set for this TabContents its icon | 212 // If an app extension has been explicitly set for this TabContents its icon |
213 // is returned. If an app extension has not been set but there is an | 213 // is returned. |
214 // extension whose extent contains the url of the current page it's icon | |
215 // is returned. Otherwise an empty icon is returned. | |
216 // | 214 // |
217 // NOTE: the returned icon is larger than 16x16 (it's size is | 215 // NOTE: the returned icon is larger than 16x16 (it's size is |
218 // Extension::EXTENSION_ICON_SMALLISH). | 216 // Extension::EXTENSION_ICON_SMALLISH). |
219 SkBitmap* GetExtensionAppIcon(); | 217 SkBitmap* GetExtensionAppIcon(); |
220 | 218 |
221 // Tab navigation state ------------------------------------------------------ | 219 // Tab navigation state ------------------------------------------------------ |
222 | 220 |
223 // Returns the current navigation properties, which if a navigation is | 221 // Returns the current navigation properties, which if a navigation is |
224 // pending may be provisional (e.g., the navigation could result in a | 222 // pending may be provisional (e.g., the navigation could result in a |
225 // download, in which case the URL would revert to what it was previously). | 223 // download, in which case the URL would revert to what it was previously). |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 | 1279 |
1282 // See description above setter. | 1280 // See description above setter. |
1283 bool closed_by_user_gesture_; | 1281 bool closed_by_user_gesture_; |
1284 | 1282 |
1285 // --------------------------------------------------------------------------- | 1283 // --------------------------------------------------------------------------- |
1286 | 1284 |
1287 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1285 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1288 }; | 1286 }; |
1289 | 1287 |
1290 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1288 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |