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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.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_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // views::View implementation. 308 // views::View implementation.
309 virtual const char* GetClassName() const OVERRIDE; 309 virtual const char* GetClassName() const OVERRIDE;
310 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 310 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
311 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 311 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
312 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 312 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
313 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 313 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
314 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 314 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
315 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 315 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
316 // This is needed because not all events percolate up the views hierarchy. 316 // This is needed because not all events percolate up the views hierarchy.
317 virtual View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; 317 virtual View* GetEventHandlerForRect(const gfx::RectF& rect) OVERRIDE;
318 318
319 private: 319 private:
320 // Converts |event| to one suitable for |proxy_button_|. 320 // Converts |event| to one suitable for |proxy_button_|.
321 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event); 321 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event);
322 322
323 // Returns true if the given event should be forwarded to |proxy_button_|. 323 // Returns true if the given event should be forwarded to |proxy_button_|.
324 bool ShouldForwardEvent(const ui::LocatedEvent& event); 324 bool ShouldForwardEvent(const ui::LocatedEvent& event);
325 325
326 // Mouse events on |this| are sent to this button. 326 // Mouse events on |this| are sent to this button.
327 views::Button* proxy_button_; // Weak reference. 327 views::Button* proxy_button_; // Weak reference.
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 // Used to tell the delegate when focus moves to hide the Autofill popup. 676 // Used to tell the delegate when focus moves to hide the Autofill popup.
677 scoped_ptr<ui::EventHandler> event_handler_; 677 scoped_ptr<ui::EventHandler> event_handler_;
678 678
679 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 679 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
680 }; 680 };
681 681
682 } // namespace autofill 682 } // namespace autofill
683 683
684 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 684 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698