| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_DOM_UI_NEW_TAB_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/dom_ui/dom_ui.h" | 8 #include "chrome/browser/dom_ui/dom_ui.h" |
| 9 #include "chrome/common/notification_registrar.h" | 9 #include "chrome/common/notification_registrar.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Whether we should disable the first run notification based on the command | 34 // Whether we should disable the first run notification based on the command |
| 35 // line switch. | 35 // line switch. |
| 36 static bool FirstRunDisabled(); | 36 static bool FirstRunDisabled(); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 void Observe(NotificationType type, | 39 void Observe(NotificationType type, |
| 40 const NotificationSource& source, | 40 const NotificationSource& source, |
| 41 const NotificationDetails& details); | 41 const NotificationDetails& details); |
| 42 | 42 |
| 43 // Reset the CSS caches. |
| 44 void InitializeCSSCaches(); |
| 45 |
| 43 NotificationRegistrar registrar_; | 46 NotificationRegistrar registrar_; |
| 44 | 47 |
| 45 // The message id that should be displayed in this NewTabUIContents | 48 // The message id that should be displayed in this NewTabUIContents |
| 46 // instance's motd area. | 49 // instance's motd area. |
| 47 int motd_message_id_; | 50 int motd_message_id_; |
| 48 | 51 |
| 49 // Whether the user is in incognito mode or not, used to determine | 52 // Whether the user is in incognito mode or not, used to determine |
| 50 // what HTML to load. | 53 // what HTML to load. |
| 51 bool incognito_; | 54 bool incognito_; |
| 52 | 55 |
| 53 DISALLOW_COPY_AND_ASSIGN(NewTabUI); | 56 DISALLOW_COPY_AND_ASSIGN(NewTabUI); |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ | 59 #endif // CHROME_BROWSER_DOM_UI_NEW_TAB_UI_H_ |
| OLD | NEW |