| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 // Shows the menu used during drag and drop for the specified node. | 402 // Shows the menu used during drag and drop for the specified node. |
| 403 void ShowDropFolderForNode(const BookmarkNode* node); | 403 void ShowDropFolderForNode(const BookmarkNode* node); |
| 404 | 404 |
| 405 // Cancels the timer used to show a drop menu. | 405 // Cancels the timer used to show a drop menu. |
| 406 void StopShowFolderDropMenuTimer(); | 406 void StopShowFolderDropMenuTimer(); |
| 407 | 407 |
| 408 // Stars the timer used to show a drop menu for node. | 408 // Stars the timer used to show a drop menu for node. |
| 409 void StartShowFolderDropMenuTimer(const BookmarkNode* node); | 409 void StartShowFolderDropMenuTimer(const BookmarkNode* node); |
| 410 | 410 |
| 411 // Returns the drop operation and index for the drop based on the event | 411 // Returns the drop operation and index for the drop based on the event |
| 412 // and data. Returns DragDropTypes::DRAG_NONE if not a valid location. | 412 // and data. Returns ui::DragDropTypes::DRAG_NONE if not a valid location. |
| 413 int CalculateDropOperation(const views::DropTargetEvent& event, | 413 int CalculateDropOperation(const views::DropTargetEvent& event, |
| 414 const BookmarkNodeData& data, | 414 const BookmarkNodeData& data, |
| 415 int* index, | 415 int* index, |
| 416 bool* drop_on, | 416 bool* drop_on, |
| 417 bool* is_over_overflow, | 417 bool* is_over_overflow, |
| 418 bool* is_over_other); | 418 bool* is_over_other); |
| 419 | 419 |
| 420 // Returns the index of the first hidden bookmark button. If all buttons are | 420 // Returns the index of the first hidden bookmark button. If all buttons are |
| 421 // visible, this returns GetBookmarkButtonCount(). | 421 // visible, this returns GetBookmarkButtonCount(). |
| 422 int GetFirstHiddenNodeIndex(); | 422 int GetFirstHiddenNodeIndex(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // overflow_button_ or a button on the bar. | 501 // overflow_button_ or a button on the bar. |
| 502 views::CustomButton* throbbing_view_; | 502 views::CustomButton* throbbing_view_; |
| 503 | 503 |
| 504 // Background for extension toolstrips. | 504 // Background for extension toolstrips. |
| 505 SkBitmap toolstrip_background_; | 505 SkBitmap toolstrip_background_; |
| 506 | 506 |
| 507 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 507 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 508 }; | 508 }; |
| 509 | 509 |
| 510 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ | 510 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |