Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/views/detachable_toolbar_view.h

Issue 204026: Unified the color definitions for the dividers so that extension shelf is usi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "views/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 views::View { 15 class DetachableToolbarView : public views::View {
16 public: 16 public:
17 // The color gradient start value close to the edge of the divider.
18 static const SkColor kEdgeDividerColor;
19 // The color gradient value for the middle of the divider.
20 static const SkColor kMiddleDividerColor;
21
17 DetachableToolbarView() {} 22 DetachableToolbarView() {}
18 virtual ~DetachableToolbarView() {} 23 virtual ~DetachableToolbarView() {}
19 24
20 // Whether the view is currently detached from the Chrome frame. 25 // Whether the view is currently detached from the Chrome frame.
21 virtual bool IsDetached() const = 0; 26 virtual bool IsDetached() const = 0;
22 27
23 // Whether the shelf/bar is above the page or below it. 28 // Whether the shelf/bar is above the page or below it.
24 virtual bool IsOnTop() const = 0; 29 virtual bool IsOnTop() const = 0;
25 30
26 // Gets the current state of the resize animation (show/hide). 31 // Gets the current state of the resize animation (show/hide).
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int tiling, 94 int tiling,
90 int alignment, 95 int alignment,
91 int width, 96 int width,
92 int height, 97 int height,
93 int browser_height); 98 int browser_height);
94 private: 99 private:
95 DISALLOW_COPY_AND_ASSIGN(DetachableToolbarView); 100 DISALLOW_COPY_AND_ASSIGN(DetachableToolbarView);
96 }; 101 };
97 102
98 #endif // CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_ 103 #endif // CHROME_BROWSER_VIEWS_DETACHABLE_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.cc ('k') | chrome/browser/views/detachable_toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698