| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/simple_web_view_dialog.h" | 5 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" |
| 6 | 6 |
| 7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 const ToolbarModel* SimpleWebViewDialog::GetToolbarModel() const { | 289 const ToolbarModel* SimpleWebViewDialog::GetToolbarModel() const { |
| 290 return toolbar_model_.get(); | 290 return toolbar_model_.get(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 ContentSettingBubbleModelDelegate* | 293 ContentSettingBubbleModelDelegate* |
| 294 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { | 294 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { |
| 295 return bubble_model_delegate_.get(); | 295 return bubble_model_delegate_.get(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void SimpleWebViewDialog::ShowWebsiteSettings( | 298 void SimpleWebViewDialog::ShowPageInfo(content::WebContents* web_contents) { |
| 299 content::WebContents* web_contents) { | |
| 300 NOTIMPLEMENTED(); | 299 NOTIMPLEMENTED(); |
| 301 // TODO (markusheintz@): implement this | 300 // TODO (markusheintz@): implement this |
| 302 } | 301 } |
| 303 | 302 |
| 304 content::WebContents* SimpleWebViewDialog::GetActiveWebContents() const { | 303 content::WebContents* SimpleWebViewDialog::GetActiveWebContents() const { |
| 305 return web_view_->web_contents(); | 304 return web_view_->web_contents(); |
| 306 } | 305 } |
| 307 | 306 |
| 308 void SimpleWebViewDialog::ExecuteCommandWithDisposition( | 307 void SimpleWebViewDialog::ExecuteCommandWithDisposition( |
| 309 int id, | 308 int id, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 370 |
| 372 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 371 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 373 if (reload_) { | 372 if (reload_) { |
| 374 reload_->ChangeMode( | 373 reload_->ChangeMode( |
| 375 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 374 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 376 force); | 375 force); |
| 377 } | 376 } |
| 378 } | 377 } |
| 379 | 378 |
| 380 } // namespace chromeos | 379 } // namespace chromeos |
| OLD | NEW |