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

Side by Side Diff: chrome/browser/chromeos/login/simple_web_view_dialog.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/chromeos/login/simple_web_view_dialog.h" 5 #include "chrome/browser/chromeos/login/simple_web_view_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 views::View* SimpleWebViewDialog::GetContentsView() { 239 views::View* SimpleWebViewDialog::GetContentsView() {
240 return this; 240 return this;
241 } 241 }
242 242
243 views::View* SimpleWebViewDialog::GetInitiallyFocusedView() { 243 views::View* SimpleWebViewDialog::GetInitiallyFocusedView() {
244 return web_view_; 244 return web_view_;
245 } 245 }
246 246
247 void SimpleWebViewDialog::ButtonPressed(views::Button* sender, 247 void SimpleWebViewDialog::ButtonPressed(views::Button* sender,
248 const views::Event& event) { 248 const ui::Event& event) {
249 command_updater_->ExecuteCommand(sender->tag()); 249 command_updater_->ExecuteCommand(sender->tag());
250 } 250 }
251 251
252 void SimpleWebViewDialog::NavigationStateChanged( 252 void SimpleWebViewDialog::NavigationStateChanged(
253 const WebContents* source, unsigned changed_flags) { 253 const WebContents* source, unsigned changed_flags) {
254 if (location_bar_) { 254 if (location_bar_) {
255 location_bar_->Update(NULL); 255 location_bar_->Update(NULL);
256 UpdateButtons(); 256 UpdateButtons();
257 } 257 }
258 } 258 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { 389 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) {
390 if (reload_) { 390 if (reload_) {
391 reload_->ChangeMode( 391 reload_->ChangeMode(
392 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, 392 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD,
393 force); 393 force);
394 } 394 }
395 } 395 }
396 396
397 } // namespace chromeos 397 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/simple_web_view_dialog.h ('k') | chrome/browser/chromeos/login/take_photo_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698