| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleOkButton); | 67 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleOkButton); |
| 68 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogOkButton); | 68 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogOkButton); |
| 69 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogUndoButton); | 69 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogUndoButton); |
| 70 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleAdvancedLink); | 70 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleAdvancedLink); |
| 71 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogAdvancedLink); | 71 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogAdvancedLink); |
| 72 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleLearnMoreLink); | 72 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, BubbleLearnMoreLink); |
| 73 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogLearnMoreLink); | 73 FRIEND_TEST_ALL_PREFIXES(OneClickSigninBubbleViewTest, DialogLearnMoreLink); |
| 74 | 74 |
| 75 // Overridden from views::BubbleDelegateView: | 75 // Overridden from views::BubbleDelegateView: |
| 76 virtual void Init() OVERRIDE; | 76 virtual void Init() override; |
| 77 | 77 |
| 78 // Overridden from views::LinkListener: | 78 // Overridden from views::LinkListener: |
| 79 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 79 virtual void LinkClicked(views::Link* source, int event_flags) override; |
| 80 | 80 |
| 81 // Overridden from views::ButtonListener: | 81 // Overridden from views::ButtonListener: |
| 82 virtual void ButtonPressed(views::Button* sender, | 82 virtual void ButtonPressed(views::Button* sender, |
| 83 const ui::Event& event) OVERRIDE; | 83 const ui::Event& event) override; |
| 84 | 84 |
| 85 // Overridden from views::View: | 85 // Overridden from views::View: |
| 86 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 86 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 87 | 87 |
| 88 // Overridden from views::WidgetDelegate: | 88 // Overridden from views::WidgetDelegate: |
| 89 virtual void WindowClosing() OVERRIDE; | 89 virtual void WindowClosing() override; |
| 90 virtual ui::ModalType GetModalType() const OVERRIDE; | 90 virtual ui::ModalType GetModalType() const override; |
| 91 | 91 |
| 92 // Builds a popup bubble anchored under the wrench menu | 92 // Builds a popup bubble anchored under the wrench menu |
| 93 void InitBubbleContent(views::GridLayout* layout); | 93 void InitBubbleContent(views::GridLayout* layout); |
| 94 | 94 |
| 95 // Builds a modal dialog aligned center top | 95 // Builds a modal dialog aligned center top |
| 96 void InitDialogContent(views::GridLayout* layout); | 96 void InitDialogContent(views::GridLayout* layout); |
| 97 | 97 |
| 98 // Initializes the OK/Undo buttons to be used at the bottom of the bubble. | 98 // Initializes the OK/Undo buttons to be used at the bottom of the bubble. |
| 99 void InitButtons(views::GridLayout* layout); | 99 void InitButtons(views::GridLayout* layout); |
| 100 void GetButtons(views::LabelButton** ok_button, | 100 void GetButtons(views::LabelButton** ok_button, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 bool clicked_learn_more_; | 138 bool clicked_learn_more_; |
| 139 | 139 |
| 140 // The bubble, if we're showing one. | 140 // The bubble, if we're showing one. |
| 141 static OneClickSigninBubbleView* bubble_view_; | 141 static OneClickSigninBubbleView* bubble_view_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView); | 143 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ | 146 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ |
| OLD | NEW |