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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void WindowClosing() OVERRIDE; | 64 virtual void WindowClosing() OVERRIDE; |
65 | 65 |
66 // views::View method: | 66 // views::View method: |
67 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 67 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
68 | 68 |
69 // Overridden from views::LinkListener: | 69 // Overridden from views::LinkListener: |
70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
71 | 71 |
72 // Overridden from views::ButtonListener: | 72 // Overridden from views::ButtonListener: |
73 virtual void ButtonPressed(views::Button* sender, | 73 virtual void ButtonPressed(views::Button* sender, |
74 const views::Event& event) OVERRIDE; | 74 const ui::Event& event) OVERRIDE; |
75 | 75 |
76 // The bubble, if we're showing one. | 76 // The bubble, if we're showing one. |
77 static OneClickSigninBubbleView* bubble_view_; | 77 static OneClickSigninBubbleView* bubble_view_; |
78 | 78 |
79 // Link to sync setup advanced page. | 79 // Link to sync setup advanced page. |
80 views::Link* advanced_link_; | 80 views::Link* advanced_link_; |
81 | 81 |
82 // Controls at bottom of bubble. | 82 // Controls at bottom of bubble. |
83 views::TextButton* ok_button_; | 83 views::TextButton* ok_button_; |
84 views::TextButton* undo_button_; | 84 views::TextButton* undo_button_; |
85 | 85 |
86 // This callback is nulled once its called, so that it is called only once. | 86 // This callback is nulled once its called, so that it is called only once. |
87 // It will be called when the bubble is closed if it has not been called | 87 // It will be called when the bubble is closed if it has not been called |
88 // and nulled earlier. | 88 // and nulled earlier. |
89 BrowserWindow::StartSyncCallback start_sync_callback_; | 89 BrowserWindow::StartSyncCallback start_sync_callback_; |
90 | 90 |
91 // A message loop used only with unit tests. | 91 // A message loop used only with unit tests. |
92 MessageLoop* message_loop_for_testing_; | 92 MessageLoop* message_loop_for_testing_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView); | 94 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ |
OLD | NEW |