| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILES_NEW_AVATAR_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 9 #include "components/signin/core/browser/signin_error_controller.h" | 9 #include "components/signin/core/browser/signin_error_controller.h" |
| 10 #include "ui/views/controls/button/label_button.h" | 10 #include "ui/views/controls/button/label_button.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 NewAvatarButton(views::ButtonListener* listener, | 25 NewAvatarButton(views::ButtonListener* listener, |
| 26 AvatarButtonStyle button_style, | 26 AvatarButtonStyle button_style, |
| 27 Browser* browser); | 27 Browser* browser); |
| 28 ~NewAvatarButton() override; | 28 ~NewAvatarButton() override; |
| 29 | 29 |
| 30 // Views::LabelButton | 30 // Views::LabelButton |
| 31 bool OnMousePressed(const ui::MouseEvent& event) override; | 31 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 32 void OnMouseReleased(const ui::MouseEvent& event) override; | 32 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 33 | 33 |
| 34 // Views |
| 35 void OnGestureEvent(ui::GestureEvent* event) override; |
| 36 |
| 34 private: | 37 private: |
| 35 friend class ProfileChooserViewExtensionsTest; | 38 friend class ProfileChooserViewExtensionsTest; |
| 36 | 39 |
| 37 // ProfileInfoCacheObserver: | 40 // ProfileInfoCacheObserver: |
| 38 void OnProfileAdded(const base::FilePath& profile_path) override; | 41 void OnProfileAdded(const base::FilePath& profile_path) override; |
| 39 void OnProfileWasRemoved(const base::FilePath& profile_path, | 42 void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 40 const base::string16& profile_name) override; | 43 const base::string16& profile_name) override; |
| 41 void OnProfileNameChanged(const base::FilePath& profile_path, | 44 void OnProfileNameChanged(const base::FilePath& profile_path, |
| 42 const base::string16& old_profile_name) override; | 45 const base::string16& old_profile_name) override; |
| 43 void OnProfileSupervisedUserIdChanged( | 46 void OnProfileSupervisedUserIdChanged( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 62 | 65 |
| 63 // This is used to check if the bubble was showing during the mouse pressed | 66 // This is used to check if the bubble was showing during the mouse pressed |
| 64 // event. If this is true then the mouse released event is ignored to prevent | 67 // event. If this is true then the mouse released event is ignored to prevent |
| 65 // the bubble from reshowing. | 68 // the bubble from reshowing. |
| 66 bool suppress_mouse_released_action_; | 69 bool suppress_mouse_released_action_; |
| 67 | 70 |
| 68 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); | 71 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 74 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| OLD | NEW |