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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_AVATAR_MENU_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 views::BubbleBorder::ArrowPaintType arrow_paint_type, 53 views::BubbleBorder::ArrowPaintType arrow_paint_type,
54 views::BubbleBorder::BubbleAlignment border_alignment, 54 views::BubbleBorder::BubbleAlignment border_alignment,
55 const gfx::Rect& anchor_rect, 55 const gfx::Rect& anchor_rect,
56 Browser* browser); 56 Browser* browser);
57 static bool IsShowing(); 57 static bool IsShowing();
58 static void Hide(); 58 static void Hide();
59 59
60 virtual ~AvatarMenuBubbleView(); 60 virtual ~AvatarMenuBubbleView();
61 61
62 // views::View implementation. 62 // views::View implementation.
63 virtual gfx::Size GetPreferredSize() const OVERRIDE; 63 virtual gfx::Size GetPreferredSize() const override;
64 virtual void Layout() OVERRIDE; 64 virtual void Layout() override;
65 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 65 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
66 66
67 // views::ButtonListener implementation. 67 // views::ButtonListener implementation.
68 virtual void ButtonPressed(views::Button* sender, 68 virtual void ButtonPressed(views::Button* sender,
69 const ui::Event& event) OVERRIDE; 69 const ui::Event& event) override;
70 70
71 // views::LinkListener implementation. 71 // views::LinkListener implementation.
72 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 72 virtual void LinkClicked(views::Link* source, int event_flags) override;
73 73
74 // BubbleDelegate implementation. 74 // BubbleDelegate implementation.
75 virtual gfx::Rect GetAnchorRect() const OVERRIDE; 75 virtual gfx::Rect GetAnchorRect() const override;
76 virtual void Init() OVERRIDE; 76 virtual void Init() override;
77 virtual void WindowClosing() OVERRIDE; 77 virtual void WindowClosing() override;
78 78
79 // AvatarMenuObserver implementation. 79 // AvatarMenuObserver implementation.
80 virtual void OnAvatarMenuChanged( 80 virtual void OnAvatarMenuChanged(
81 AvatarMenu* avatar_menu) OVERRIDE; 81 AvatarMenu* avatar_menu) override;
82 82
83 // We normally close the bubble any time it becomes inactive but this can lead 83 // We normally close the bubble any time it becomes inactive but this can lead
84 // to flaky tests where unexpected UI events are triggering this behavior. 84 // to flaky tests where unexpected UI events are triggering this behavior.
85 // Tests should call this with "false" for more consistent operation. 85 // Tests should call this with "false" for more consistent operation.
86 static void clear_close_on_deactivate_for_testing() { 86 static void clear_close_on_deactivate_for_testing() {
87 close_on_deactivate_for_testing_ = false; 87 close_on_deactivate_for_testing_ = false;
88 } 88 }
89 89
90 private: 90 private:
91 AvatarMenuBubbleView(views::View* anchor_view, 91 AvatarMenuBubbleView(views::View* anchor_view,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 static AvatarMenuBubbleView* avatar_bubble_; 128 static AvatarMenuBubbleView* avatar_bubble_;
129 static bool close_on_deactivate_for_testing_; 129 static bool close_on_deactivate_for_testing_;
130 130
131 // Is set to true if the supervised user has clicked on Switch Users. 131 // Is set to true if the supervised user has clicked on Switch Users.
132 bool expanded_; 132 bool expanded_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); 134 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView);
135 }; 135 };
136 136
137 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ 137 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/pdf_password_dialog.cc ('k') | chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698