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_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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 void SetForwardMouseEvents(bool forward); | 366 void SetForwardMouseEvents(bool forward); |
367 | 367 |
368 // views::View implementation. | 368 // views::View implementation. |
369 virtual const char* GetClassName() const OVERRIDE; | 369 virtual const char* GetClassName() const OVERRIDE; |
370 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 370 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
371 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 371 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
372 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 372 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
373 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 373 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
374 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 374 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
375 // This is needed because not all events percolate up the views hierarchy. | 375 // This is needed because not all events percolate up the views hierarchy. |
376 virtual View* GetEventHandlerForPoint(const gfx::Point& point) OVERRIDE; | 376 virtual View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; |
377 | 377 |
378 private: | 378 private: |
379 // Converts |event| to one suitable for |proxy_button_|. | 379 // Converts |event| to one suitable for |proxy_button_|. |
380 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event); | 380 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event); |
381 | 381 |
382 // Returns true if the given event should be forwarded to |proxy_button_|. | 382 // Returns true if the given event should be forwarded to |proxy_button_|. |
383 bool ShouldForwardEvent(const ui::MouseEvent& event); | 383 bool ShouldForwardEvent(const ui::MouseEvent& event); |
384 | 384 |
385 // Mouse events on |this| are sent to this button. | 385 // Mouse events on |this| are sent to this button. |
386 views::Button* proxy_button_; // Weak reference. | 386 views::Button* proxy_button_; // Weak reference. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 721 |
722 // Delegate for the sign-in dialog's webview. | 722 // Delegate for the sign-in dialog's webview. |
723 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 723 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
724 | 724 |
725 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 725 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
726 }; | 726 }; |
727 | 727 |
728 } // namespace autofill | 728 } // namespace autofill |
729 | 729 |
730 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 730 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
OLD | NEW |