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

Side by Side Diff: chrome/browser/ui/views/toolbar/browser_actions_container.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/extensions/extension_keybinding_registry.h" 9 #include "chrome/browser/extensions/extension_keybinding_registry.h"
10 #include "chrome/browser/extensions/extension_toolbar_model.h" 10 #include "chrome/browser/extensions/extension_toolbar_model.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual void OnDragExited() OVERRIDE; 183 virtual void OnDragExited() OVERRIDE;
184 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 184 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
185 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 185 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
186 186
187 // Overridden from views::MenuButtonListener: 187 // Overridden from views::MenuButtonListener:
188 virtual void OnMenuButtonClicked(views::View* source, 188 virtual void OnMenuButtonClicked(views::View* source,
189 const gfx::Point& point) OVERRIDE; 189 const gfx::Point& point) OVERRIDE;
190 190
191 // Overridden from views::DragController: 191 // Overridden from views::DragController:
192 virtual void WriteDragDataForView(View* sender, 192 virtual void WriteDragDataForView(View* sender,
193 const gfx::Point& press_pt, 193 const gfx::PointF& press_pt,
194 ui::OSExchangeData* data) OVERRIDE; 194 ui::OSExchangeData* data) OVERRIDE;
195 virtual int GetDragOperationsForView(View* sender, 195 virtual int GetDragOperationsForView(View* sender,
196 const gfx::Point& p) OVERRIDE; 196 const gfx::PointF& p) OVERRIDE;
197 virtual bool CanStartDragForView(View* sender, 197 virtual bool CanStartDragForView(View* sender,
198 const gfx::Point& press_pt, 198 const gfx::PointF& press_pt,
199 const gfx::Point& p) OVERRIDE; 199 const gfx::PointF& p) OVERRIDE;
200 200
201 // Overridden from views::ResizeAreaDelegate: 201 // Overridden from views::ResizeAreaDelegate:
202 virtual void OnResize(int resize_amount, bool done_resizing) OVERRIDE; 202 virtual void OnResize(int resize_amount, bool done_resizing) OVERRIDE;
203 203
204 // Overridden from gfx::AnimationDelegate: 204 // Overridden from gfx::AnimationDelegate:
205 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 205 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
206 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 206 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
207 207
208 // Overridden from BrowserActionOverflowMenuController::Observer: 208 // Overridden from BrowserActionOverflowMenuController::Observer:
209 virtual void NotifyMenuDeleted( 209 virtual void NotifyMenuDeleted(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 // Handles delayed showing of the overflow menu when hovering. 403 // Handles delayed showing of the overflow menu when hovering.
404 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; 404 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_;
405 405
406 ObserverList<BrowserActionsContainerObserver> observers_; 406 ObserverList<BrowserActionsContainerObserver> observers_;
407 407
408 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 408 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
409 }; 409 };
410 410
411 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 411 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698