| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // for the new tab page and related pages so that the URL bar is empty and | 239 // for the new tab page and related pages so that the URL bar is empty and |
| 240 // the user is invited to type into it. | 240 // the user is invited to type into it. |
| 241 virtual bool ShouldDisplayURL(); | 241 virtual bool ShouldDisplayURL(); |
| 242 | 242 |
| 243 // Returns the favicon for this tab, or an isNull() bitmap if the tab does not | 243 // Returns the favicon for this tab, or an isNull() bitmap if the tab does not |
| 244 // have a favicon. The default implementation uses the current navigation | 244 // have a favicon. The default implementation uses the current navigation |
| 245 // entry. | 245 // entry. |
| 246 SkBitmap GetFavicon() const; | 246 SkBitmap GetFavicon() const; |
| 247 | 247 |
| 248 // Returns true if we are not using the default favicon. | 248 // Returns true if we are not using the default favicon. |
| 249 bool FavIconIsValid() const; | 249 bool FaviconIsValid() const; |
| 250 | 250 |
| 251 // Returns whether the favicon should be displayed. If this returns false, no | 251 // Returns whether the favicon should be displayed. If this returns false, no |
| 252 // space is provided for the favicon, and the favicon is never displayed. | 252 // space is provided for the favicon, and the favicon is never displayed. |
| 253 virtual bool ShouldDisplayFavIcon(); | 253 virtual bool ShouldDisplayFavicon(); |
| 254 | 254 |
| 255 // Add and remove observers for page navigation notifications. Adding or | 255 // Add and remove observers for page navigation notifications. Adding or |
| 256 // removing multiple times has no effect. The order in which notifications | 256 // removing multiple times has no effect. The order in which notifications |
| 257 // are sent to observers is undefined. Clients must be sure to remove the | 257 // are sent to observers is undefined. Clients must be sure to remove the |
| 258 // observer before they go away. | 258 // observer before they go away. |
| 259 void AddObserver(TabContentsObserver* observer); | 259 void AddObserver(TabContentsObserver* observer); |
| 260 void RemoveObserver(TabContentsObserver* observer); | 260 void RemoveObserver(TabContentsObserver* observer); |
| 261 | 261 |
| 262 // Return whether this tab contents is loading a resource. | 262 // Return whether this tab contents is loading a resource. |
| 263 bool is_loading() const { return is_loading_; } | 263 bool is_loading() const { return is_loading_; } |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 ObserverList<TabContentsObserver> observers_; | 1246 ObserverList<TabContentsObserver> observers_; |
| 1247 | 1247 |
| 1248 // Content restrictions, used to disable print/copy etc based on content's | 1248 // Content restrictions, used to disable print/copy etc based on content's |
| 1249 // (full-page plugins for now only) permissions. | 1249 // (full-page plugins for now only) permissions. |
| 1250 int content_restrictions_; | 1250 int content_restrictions_; |
| 1251 | 1251 |
| 1252 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1252 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1253 }; | 1253 }; |
| 1254 | 1254 |
| 1255 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1255 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |