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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.h

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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) 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 #include <string> 9 #include <string>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 virtual void ViewHierarchyChanged(bool 163 virtual void ViewHierarchyChanged(bool
164 is_add, 164 is_add,
165 View* parent, 165 View* parent,
166 View* child) OVERRIDE; 166 View* child) OVERRIDE;
167 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 167 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
168 virtual bool GetDropFormats( 168 virtual bool GetDropFormats(
169 int* formats, 169 int* formats,
170 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 170 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
171 virtual bool AreDropTypesRequired() OVERRIDE; 171 virtual bool AreDropTypesRequired() OVERRIDE;
172 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 172 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
173 virtual void OnDragEntered(const views::DropTargetEvent& event) OVERRIDE; 173 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
174 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; 174 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
175 virtual void OnDragExited() OVERRIDE; 175 virtual void OnDragExited() OVERRIDE;
176 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; 176 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
177 virtual void ShowContextMenu(const gfx::Point& p, 177 virtual void ShowContextMenu(const gfx::Point& p,
178 bool is_mouse_gesture) OVERRIDE; 178 bool is_mouse_gesture) OVERRIDE;
179 virtual void OnThemeChanged() OVERRIDE; 179 virtual void OnThemeChanged() OVERRIDE;
180 virtual std::string GetClassName() const OVERRIDE; 180 virtual std::string GetClassName() const OVERRIDE;
181 181
182 // AccessiblePaneView: 182 // AccessiblePaneView:
183 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 183 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
184 184
185 // ui::AnimationDelegate: 185 // ui::AnimationDelegate:
186 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 186 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Shows the menu used during drag and drop for the specified node. 310 // Shows the menu used during drag and drop for the specified node.
311 void ShowDropFolderForNode(const BookmarkNode* node); 311 void ShowDropFolderForNode(const BookmarkNode* node);
312 312
313 // Cancels the timer used to show a drop menu. 313 // Cancels the timer used to show a drop menu.
314 void StopShowFolderDropMenuTimer(); 314 void StopShowFolderDropMenuTimer();
315 315
316 // Stars the timer used to show a drop menu for node. 316 // Stars the timer used to show a drop menu for node.
317 void StartShowFolderDropMenuTimer(const BookmarkNode* node); 317 void StartShowFolderDropMenuTimer(const BookmarkNode* node);
318 318
319 // Calculates the location for the drop in |location|. 319 // Calculates the location for the drop in |location|.
320 void CalculateDropLocation(const views::DropTargetEvent& event, 320 void CalculateDropLocation(const ui::DropTargetEvent& event,
321 const BookmarkNodeData& data, 321 const BookmarkNodeData& data,
322 DropLocation* location); 322 DropLocation* location);
323 323
324 // Writes a BookmarkNodeData for node to data. 324 // Writes a BookmarkNodeData for node to data.
325 void WriteBookmarkDragData(const BookmarkNode* node, 325 void WriteBookmarkDragData(const BookmarkNode* node,
326 ui::OSExchangeData* data); 326 ui::OSExchangeData* data);
327 327
328 // This determines which view should throb and starts it 328 // This determines which view should throb and starts it
329 // throbbing (e.g when the bookmark bubble is showing). 329 // throbbing (e.g when the bookmark bubble is showing).
330 // If |overflow_only| is true, start throbbing only if |node| is hidden in 330 // If |overflow_only| is true, start throbbing only if |node| is hidden in
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 BookmarkBar::State bookmark_bar_state_; 408 BookmarkBar::State bookmark_bar_state_;
409 409
410 // Are we animating to or from the detached state? 410 // Are we animating to or from the detached state?
411 bool animating_detached_; 411 bool animating_detached_;
412 412
413 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 413 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
414 }; 414 };
415 415
416 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 416 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698