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