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

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

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 Profile* profile); 159 Profile* profile);
160 160
161 // DetachableToolbarView methods: 161 // DetachableToolbarView methods:
162 virtual bool IsDetached() const OVERRIDE; 162 virtual bool IsDetached() const OVERRIDE;
163 virtual double GetAnimationValue() const OVERRIDE; 163 virtual double GetAnimationValue() const OVERRIDE;
164 virtual int GetToolbarOverlap() const OVERRIDE; 164 virtual int GetToolbarOverlap() const OVERRIDE;
165 165
166 // View methods: 166 // View methods:
167 virtual gfx::Size GetPreferredSize() OVERRIDE; 167 virtual gfx::Size GetPreferredSize() OVERRIDE;
168 virtual gfx::Size GetMinimumSize() OVERRIDE; 168 virtual gfx::Size GetMinimumSize() OVERRIDE;
169 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 169 virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
170 virtual void Layout() OVERRIDE; 170 virtual void Layout() OVERRIDE;
171 virtual void ViewHierarchyChanged( 171 virtual void ViewHierarchyChanged(
172 const ViewHierarchyChangedDetails& details) OVERRIDE; 172 const ViewHierarchyChangedDetails& details) OVERRIDE;
173 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 173 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
174 virtual bool GetDropFormats( 174 virtual bool GetDropFormats(
175 int* formats, 175 int* formats,
176 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 176 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
177 virtual bool AreDropTypesRequired() OVERRIDE; 177 virtual bool AreDropTypesRequired() OVERRIDE;
178 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 178 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 virtual void BookmarkAllNodesRemoved(BookmarkModel* model) OVERRIDE; 220 virtual void BookmarkAllNodesRemoved(BookmarkModel* model) OVERRIDE;
221 virtual void BookmarkNodeChanged(BookmarkModel* model, 221 virtual void BookmarkNodeChanged(BookmarkModel* model,
222 const BookmarkNode* node) OVERRIDE; 222 const BookmarkNode* node) OVERRIDE;
223 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, 223 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model,
224 const BookmarkNode* node) OVERRIDE; 224 const BookmarkNode* node) OVERRIDE;
225 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, 225 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model,
226 const BookmarkNode* node) OVERRIDE; 226 const BookmarkNode* node) OVERRIDE;
227 227
228 // views::DragController: 228 // views::DragController:
229 virtual void WriteDragDataForView(views::View* sender, 229 virtual void WriteDragDataForView(views::View* sender,
230 const gfx::Point& press_pt, 230 const gfx::PointF& press_pt,
231 ui::OSExchangeData* data) OVERRIDE; 231 ui::OSExchangeData* data) OVERRIDE;
232 virtual int GetDragOperationsForView(views::View* sender, 232 virtual int GetDragOperationsForView(views::View* sender,
233 const gfx::Point& p) OVERRIDE; 233 const gfx::PointF& p) OVERRIDE;
234 virtual bool CanStartDragForView(views::View* sender, 234 virtual bool CanStartDragForView(views::View* sender,
235 const gfx::Point& press_pt, 235 const gfx::PointF& press_pt,
236 const gfx::Point& p) OVERRIDE; 236 const gfx::PointF& p) OVERRIDE;
237 237
238 // views::MenuButtonListener: 238 // views::MenuButtonListener:
239 virtual void OnMenuButtonClicked(views::View* view, 239 virtual void OnMenuButtonClicked(views::View* view,
240 const gfx::Point& point) OVERRIDE; 240 const gfx::Point& point) OVERRIDE;
241 241
242 // views::ButtonListener: 242 // views::ButtonListener:
243 virtual void ButtonPressed(views::Button* sender, 243 virtual void ButtonPressed(views::Button* sender,
244 const ui::Event& event) OVERRIDE; 244 const ui::Event& event) OVERRIDE;
245 245
246 // views::ContextMenuController: 246 // views::ContextMenuController:
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 BookmarkBar::State bookmark_bar_state_; 435 BookmarkBar::State bookmark_bar_state_;
436 436
437 // Are we animating to or from the detached state? 437 // Are we animating to or from the detached state?
438 bool animating_detached_; 438 bool animating_detached_;
439 439
440 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 440 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
441 }; 441 };
442 442
443 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 443 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698