| 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_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Maximum size of buttons on the bookmark bar. | 173 // Maximum size of buttons on the bookmark bar. |
| 174 static const int kMaxButtonWidth; | 174 static const int kMaxButtonWidth; |
| 175 | 175 |
| 176 // If true we're running tests. This short circuits a couple of animations. | 176 // If true we're running tests. This short circuits a couple of animations. |
| 177 static bool testing_; | 177 static bool testing_; |
| 178 | 178 |
| 179 private: | 179 private: |
| 180 class ButtonSeparatorView; | 180 class ButtonSeparatorView; |
| 181 struct DropInfo; | 181 struct DropInfo; |
| 182 | 182 |
| 183 // Paint the theme background with the proper alignment. |
| 184 void PaintThemeBackgroundTopAligned(gfx::Canvas* canvas, |
| 185 SkBitmap* ntp_background, int tiling, int alignment); |
| 186 void PaintThemeBackgroundBottomAligned(gfx::Canvas* canvas, |
| 187 SkBitmap* ntp_background, int tiling, int alignment); |
| 188 |
| 183 // Task that invokes ShowDropFolderForNode when run. ShowFolderDropMenuTask | 189 // Task that invokes ShowDropFolderForNode when run. ShowFolderDropMenuTask |
| 184 // deletes itself once run. | 190 // deletes itself once run. |
| 185 class ShowFolderDropMenuTask : public Task { | 191 class ShowFolderDropMenuTask : public Task { |
| 186 public: | 192 public: |
| 187 ShowFolderDropMenuTask(BookmarkBarView* view, const BookmarkNode* node) | 193 ShowFolderDropMenuTask(BookmarkBarView* view, const BookmarkNode* node) |
| 188 : view_(view), | 194 : view_(view), |
| 189 node_(node) { | 195 node_(node) { |
| 190 } | 196 } |
| 191 | 197 |
| 192 void Cancel() { | 198 void Cancel() { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // overflow_button_ or a button on the bar. | 428 // overflow_button_ or a button on the bar. |
| 423 views::CustomButton* throbbing_view_; | 429 views::CustomButton* throbbing_view_; |
| 424 | 430 |
| 425 // Background for extension toolstrips. | 431 // Background for extension toolstrips. |
| 426 SkBitmap toolstrip_background_; | 432 SkBitmap toolstrip_background_; |
| 427 | 433 |
| 428 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 434 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 429 }; | 435 }; |
| 430 | 436 |
| 431 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 437 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |