| 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_VIEWS_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void ButtonPressed(views::BaseButton* sender); | 124 virtual void ButtonPressed(views::BaseButton* sender); |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 // Types of display mode this toolbar can have. | 127 // Types of display mode this toolbar can have. |
| 128 enum DisplayMode { | 128 enum DisplayMode { |
| 129 DISPLAYMODE_NORMAL, | 129 DISPLAYMODE_NORMAL, |
| 130 DISPLAYMODE_LOCATION | 130 DISPLAYMODE_LOCATION |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 // Returns the number of pixels above the location bar in non-normal display. | 133 // Returns the number of pixels above the location bar in non-normal display. |
| 134 static int PopupTopSpacing(); | 134 int PopupTopSpacing(); |
| 135 | 135 |
| 136 // NotificationObserver | 136 // NotificationObserver |
| 137 virtual void Observe(NotificationType type, | 137 virtual void Observe(NotificationType type, |
| 138 const NotificationSource& source, | 138 const NotificationSource& source, |
| 139 const NotificationDetails& details); | 139 const NotificationDetails& details); |
| 140 | 140 |
| 141 // DragController methods for the star button. These allow the drag if the | 141 // DragController methods for the star button. These allow the drag if the |
| 142 // user hasn't edited the text, the url is valid and should be displayed. | 142 // user hasn't edited the text, the url is valid and should be displayed. |
| 143 virtual void WriteDragData(View* sender, | 143 virtual void WriteDragData(View* sender, |
| 144 int press_x, | 144 int press_x, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_refptr<GetProfilesHelper> profiles_helper_; | 205 scoped_refptr<GetProfilesHelper> profiles_helper_; |
| 206 | 206 |
| 207 // Controls whether or not a home button should be shown on the toolbar. | 207 // Controls whether or not a home button should be shown on the toolbar. |
| 208 BooleanPrefMember show_home_button_; | 208 BooleanPrefMember show_home_button_; |
| 209 | 209 |
| 210 // The display mode used when laying out the toolbar. | 210 // The display mode used when laying out the toolbar. |
| 211 DisplayMode display_mode_; | 211 DisplayMode display_mode_; |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ | 214 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ |
| OLD | NEW |