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

Side by Side Diff: chrome/browser/ui/views/profiles/new_avatar_button.h

Issue 1136693002: Chrome user menu shouldn't close if a tab steals focus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chrome user menu shouldn't close if a tab steals focus Created 5 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
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Browser* browser_; 53 Browser* browser_;
54 54
55 // Whether the signed in profile has an authentication error. Used to display 55 // Whether the signed in profile has an authentication error. Used to display
56 // an error icon next to the button text. 56 // an error icon next to the button text.
57 bool has_auth_error_; 57 bool has_auth_error_;
58 58
59 // The icon displayed instead of the profile name in the local profile case. 59 // The icon displayed instead of the profile name in the local profile case.
60 // Different assets are used depending on the OS version. 60 // Different assets are used depending on the OS version.
61 gfx::ImageSkia generic_avatar_; 61 gfx::ImageSkia generic_avatar_;
62 62
63 // 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
65 // the bubble from reshowing.
66 bool suppress_mouse_released_action_;
67
68 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); 63 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton);
69 }; 64 };
70 65
71 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ 66 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698