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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |