OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DETACHABLE_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/views/accessible_toolbar_view.h" | 8 #include "views/view.h" |
9 | 9 |
10 class SkBitmap; | 10 class SkBitmap; |
11 struct SkRect; | 11 struct SkRect; |
12 | 12 |
13 // DetachableToolbarView contains functionality common to views that can detach | 13 // DetachableToolbarView contains functionality common to views that can detach |
14 // from the Chrome frame, such as the BookmarkBarView and the Extension shelf. | 14 // from the Chrome frame, such as the BookmarkBarView and the Extension shelf. |
15 class DetachableToolbarView : public AccessibleToolbarView { | 15 class DetachableToolbarView : public views::View { |
16 public: | 16 public: |
17 // The color gradient start value close to the edge of the divider. | 17 // The color gradient start value close to the edge of the divider. |
18 static const SkColor kEdgeDividerColor; | 18 static const SkColor kEdgeDividerColor; |
19 // The color gradient value for the middle of the divider. | 19 // The color gradient value for the middle of the divider. |
20 static const SkColor kMiddleDividerColor; | 20 static const SkColor kMiddleDividerColor; |
21 | 21 |
22 DetachableToolbarView() {} | 22 DetachableToolbarView() {} |
23 virtual ~DetachableToolbarView() {} | 23 virtual ~DetachableToolbarView() {} |
24 | 24 |
25 // Whether the view is currently detached from the Chrome frame. | 25 // Whether the view is currently detached from the Chrome frame. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 int vertical_padding, | 75 int vertical_padding, |
76 const SkColor& top_color, | 76 const SkColor& top_color, |
77 const SkColor& middle_color, | 77 const SkColor& middle_color, |
78 const SkColor& bottom_color); | 78 const SkColor& bottom_color); |
79 | 79 |
80 private: | 80 private: |
81 DISALLOW_COPY_AND_ASSIGN(DetachableToolbarView); | 81 DISALLOW_COPY_AND_ASSIGN(DetachableToolbarView); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ | 84 #endif // CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ |
OLD | NEW |