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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Returns the current amount of overlap atop the browser toolbar. | 162 // Returns the current amount of overlap atop the browser toolbar. |
163 int GetToolbarOverlap() const; | 163 int GetToolbarOverlap() const; |
164 | 164 |
165 // views::View: | 165 // views::View: |
166 gfx::Size CalculatePreferredSize() const override; | 166 gfx::Size CalculatePreferredSize() const override; |
167 gfx::Size GetMinimumSize() const override; | 167 gfx::Size GetMinimumSize() const override; |
168 bool CanProcessEventsWithinSubtree() const override; | 168 bool CanProcessEventsWithinSubtree() const override; |
169 void Layout() override; | 169 void Layout() override; |
170 void ViewHierarchyChanged( | 170 void ViewHierarchyChanged( |
171 const ViewHierarchyChangedDetails& details) override; | 171 const ViewHierarchyChangedDetails& details) override; |
172 void PaintChildren(const ui::PaintContext& context) override; | 172 void PaintChildren(const views::PaintInfo& paint_info) override; |
173 bool GetDropFormats( | 173 bool GetDropFormats( |
174 int* formats, | 174 int* formats, |
175 std::set<ui::Clipboard::FormatType>* format_types) override; | 175 std::set<ui::Clipboard::FormatType>* format_types) override; |
176 bool AreDropTypesRequired() override; | 176 bool AreDropTypesRequired() override; |
177 bool CanDrop(const ui::OSExchangeData& data) override; | 177 bool CanDrop(const ui::OSExchangeData& data) override; |
178 void OnDragEntered(const ui::DropTargetEvent& event) override; | 178 void OnDragEntered(const ui::DropTargetEvent& event) override; |
179 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 179 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
180 void OnDragExited() override; | 180 void OnDragExited() override; |
181 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 181 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
182 void OnThemeChanged() override; | 182 void OnThemeChanged() override; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 462 |
463 base::ObserverList<BookmarkBarViewObserver> observers_; | 463 base::ObserverList<BookmarkBarViewObserver> observers_; |
464 | 464 |
465 // Factory used to delay showing of the drop menu. | 465 // Factory used to delay showing of the drop menu. |
466 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; | 466 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; |
467 | 467 |
468 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 468 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
469 }; | 469 }; |
470 | 470 |
471 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 471 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |