| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::ShowWebsiteSettings( |
| 299 content::WebContents* web_contents, | 299 content::WebContents* web_contents) { |
| 300 const GURL& virtual_url, | |
| 301 const security_state::SecurityInfo& security_info) { | |
| 302 NOTIMPLEMENTED(); | 300 NOTIMPLEMENTED(); |
| 303 // TODO (markusheintz@): implement this | 301 // TODO (markusheintz@): implement this |
| 304 } | 302 } |
| 305 | 303 |
| 306 PageActionImageView* SimpleWebViewDialog::CreatePageActionImageView( | 304 PageActionImageView* SimpleWebViewDialog::CreatePageActionImageView( |
| 307 LocationBarView* owner, | 305 LocationBarView* owner, |
| 308 ExtensionAction* action) { | 306 ExtensionAction* action) { |
| 309 // Notreached because SimpleWebViewDialog uses a popup-mode LocationBarView, | 307 // Notreached because SimpleWebViewDialog uses a popup-mode LocationBarView, |
| 310 // and it doesn't create PageActionImageViews. | 308 // and it doesn't create PageActionImageViews. |
| 311 NOTREACHED(); | 309 NOTREACHED(); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 380 |
| 383 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 381 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 384 if (reload_) { | 382 if (reload_) { |
| 385 reload_->ChangeMode( | 383 reload_->ChangeMode( |
| 386 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 384 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 387 force); | 385 force); |
| 388 } | 386 } |
| 389 } | 387 } |
| 390 | 388 |
| 391 } // namespace chromeos | 389 } // namespace chromeos |
| OLD | NEW |