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_TOOLBAR_MODEL_H__ | 5 #ifndef CHROME_BROWSER_TOOLBAR_MODEL_H__ |
6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__ | 6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "skia/include/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
12 | 12 |
13 class NavigationController; | 13 class NavigationController; |
14 class NavigationEntry; | 14 class NavigationEntry; |
15 | 15 |
16 // This class is the model used by the toolbar, location bar and autocomplete | 16 // This class is the model used by the toolbar, location bar and autocomplete |
17 // edit. It populates its states from the current navigation entry retrieved | 17 // edit. It populates its states from the current navigation entry retrieved |
18 // from the navigation controller returned by GetNavigationController(). | 18 // from the navigation controller returned by GetNavigationController(). |
19 // Sub-classes have only need to implement GetNavigationController(). | 19 // Sub-classes have only need to implement GetNavigationController(). |
20 class ToolbarModel { | 20 class ToolbarModel { |
21 public: | 21 public: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // The message is set in |text|. | 81 // The message is set in |text|. |
82 void CreateErrorText(NavigationEntry* entry, std::wstring* text); | 82 void CreateErrorText(NavigationEntry* entry, std::wstring* text); |
83 | 83 |
84 // Whether the text in the location bar is currently being edited. | 84 // Whether the text in the location bar is currently being edited. |
85 bool input_in_progress_; | 85 bool input_in_progress_; |
86 | 86 |
87 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel); | 87 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel); |
88 }; | 88 }; |
89 | 89 |
90 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ | 90 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ |
OLD | NEW |