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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | 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 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" 5 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/google/google_util.h" 10 #include "chrome/browser/google/google_util.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 177 }
178 178
179 void OneClickSigninBubbleView::LinkClicked(views::Link* source, 179 void OneClickSigninBubbleView::LinkClicked(views::Link* source,
180 int event_flags) { 180 int event_flags) {
181 StartFade(false); 181 StartFade(false);
182 base::ResetAndReturn(&start_sync_callback_).Run( 182 base::ResetAndReturn(&start_sync_callback_).Run(
183 OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST); 183 OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST);
184 } 184 }
185 185
186 void OneClickSigninBubbleView::ButtonPressed(views::Button* sender, 186 void OneClickSigninBubbleView::ButtonPressed(views::Button* sender,
187 const views::Event& event) { 187 const ui::Event& event) {
188 StartFade(false); 188 StartFade(false);
189 if (ok_button_ == sender) { 189 if (ok_button_ == sender) {
190 base::ResetAndReturn(&start_sync_callback_).Run( 190 base::ResetAndReturn(&start_sync_callback_).Run(
191 OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); 191 OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS);
192 } else { 192 } else {
193 start_sync_callback_.Reset(); 193 start_sync_callback_.Reset();
194 } 194 }
195 } 195 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sync/one_click_signin_bubble_view.h ('k') | chrome/browser/ui/views/tabs/base_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698