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

Side by Side Diff: chrome/browser/ui/views/sync/one_click_signin_bubble_view.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
14 #include "chrome/browser/ui/views/toolbar_view.h" 14 #include "chrome/browser/ui/views/toolbar_view.h"
15 #include "ui/views/bubble/bubble_delegate.h" 15 #include "ui/views/bubble/bubble_delegate.h"
16 #include "ui/views/controls/button/button.h" 16 #include "ui/views/controls/button/button.h"
17 #include "ui/views/controls/link_listener.h" 17 #include "ui/views/controls/link_listener.h"
18 18
19 namespace base {
19 class MessageLoop; 20 class MessageLoop;
21 }
20 22
21 namespace views { 23 namespace views {
22 class GridLayout; 24 class GridLayout;
23 class TextButton; 25 class TextButton;
24 } 26 }
25 27
26 // OneClickSigninBubbleView is a view intended to be used as the content of an 28 // OneClickSigninBubbleView is a view intended to be used as the content of an
27 // Bubble. It provides simple and concise feedback to the user that sync'ing 29 // Bubble. It provides simple and concise feedback to the user that sync'ing
28 // has started after using the one-click singin infobar. 30 // has started after using the one-click singin infobar.
29 class OneClickSigninBubbleView : public views::BubbleDelegateView, 31 class OneClickSigninBubbleView : public views::BubbleDelegateView,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Controls at bottom of bubble. 103 // Controls at bottom of bubble.
102 views::TextButton* ok_button_; 104 views::TextButton* ok_button_;
103 views::TextButton* undo_button_; 105 views::TextButton* undo_button_;
104 106
105 // This callback is nulled once its called, so that it is called only once. 107 // This callback is nulled once its called, so that it is called only once.
106 // It will be called when the bubble is closed if it has not been called 108 // It will be called when the bubble is closed if it has not been called
107 // and nulled earlier. 109 // and nulled earlier.
108 BrowserWindow::StartSyncCallback start_sync_callback_; 110 BrowserWindow::StartSyncCallback start_sync_callback_;
109 111
110 // A message loop used only with unit tests. 112 // A message loop used only with unit tests.
111 MessageLoop* message_loop_for_testing_; 113 base::MessageLoop* message_loop_for_testing_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView); 115 DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleView);
114 }; 116 };
115 117
116 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_ 118 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/ui_model_worker.h ('k') | chrome/browser/ui/webui/ntp/thumbnail_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698