| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Returns the current amount of overlap atop the browser toolbar. | 168 // Returns the current amount of overlap atop the browser toolbar. |
| 169 int GetToolbarOverlap() const; | 169 int GetToolbarOverlap() const; |
| 170 | 170 |
| 171 // views::View: | 171 // views::View: |
| 172 gfx::Size GetPreferredSize() const override; | 172 gfx::Size GetPreferredSize() const override; |
| 173 gfx::Size GetMinimumSize() const override; | 173 gfx::Size GetMinimumSize() const override; |
| 174 bool CanProcessEventsWithinSubtree() const override; | 174 bool CanProcessEventsWithinSubtree() const override; |
| 175 void Layout() override; | 175 void Layout() override; |
| 176 void ViewHierarchyChanged( | 176 void ViewHierarchyChanged( |
| 177 const ViewHierarchyChangedDetails& details) override; | 177 const ViewHierarchyChangedDetails& details) override; |
| 178 void PaintChildren(const PaintContext& context) override; | 178 void PaintChildren(const ui::PaintContext& context) override; |
| 179 bool GetDropFormats( | 179 bool GetDropFormats( |
| 180 int* formats, | 180 int* formats, |
| 181 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; | 181 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; |
| 182 bool AreDropTypesRequired() override; | 182 bool AreDropTypesRequired() override; |
| 183 bool CanDrop(const ui::OSExchangeData& data) override; | 183 bool CanDrop(const ui::OSExchangeData& data) override; |
| 184 void OnDragEntered(const ui::DropTargetEvent& event) override; | 184 void OnDragEntered(const ui::DropTargetEvent& event) override; |
| 185 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 185 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
| 186 void OnDragExited() override; | 186 void OnDragExited() override; |
| 187 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 187 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
| 188 void OnThemeChanged() override; | 188 void OnThemeChanged() override; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 463 |
| 464 ObserverList<BookmarkBarViewObserver> observers_; | 464 ObserverList<BookmarkBarViewObserver> observers_; |
| 465 | 465 |
| 466 // Factory used to delay showing of the drop menu. | 466 // Factory used to delay showing of the drop menu. |
| 467 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; | 467 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; |
| 468 | 468 |
| 469 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 469 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 472 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |