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

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

Issue 1257343002: GestureLongPress should be able to invoke BUBBLE_MODE_FAST_USER_SWITCH. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle windows pathway. Created 5 years, 4 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 13 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698