| 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 "base/macros.h" |
| 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 9 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 9 #include "components/signin/core/browser/signin_error_controller.h" | 10 #include "components/signin/core/browser/signin_error_controller.h" |
| 10 #include "ui/views/controls/button/label_button.h" | 11 #include "ui/views/controls/button/label_button.h" |
| 11 | 12 |
| 12 class Browser; | 13 class Browser; |
| 13 | 14 |
| 14 // Avatar button that displays the active profile's name in the caption area. | 15 // Avatar button that displays the active profile's name in the caption area. |
| 15 class NewAvatarButton : public views::LabelButton, | 16 class NewAvatarButton : public views::LabelButton, |
| 16 public ProfileInfoCacheObserver, | 17 public ProfileInfoCacheObserver, |
| 17 public SigninErrorController::Observer { | 18 public SigninErrorController::Observer { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 66 |
| 66 // This is used to check if the bubble was showing during the mouse pressed | 67 // This is used to check if the bubble was showing during the mouse pressed |
| 67 // event. If this is true then the mouse released event is ignored to prevent | 68 // event. If this is true then the mouse released event is ignored to prevent |
| 68 // the bubble from reshowing. | 69 // the bubble from reshowing. |
| 69 bool suppress_mouse_released_action_; | 70 bool suppress_mouse_released_action_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); | 72 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 75 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| OLD | NEW |