| 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.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 17 matching lines...) Expand all Loading... |
| 28 #include "components/toolbar/toolbar_model_impl.h" | 28 #include "components/toolbar/toolbar_model_impl.h" |
| 29 #include "content/public/browser/navigation_controller.h" | 29 #include "content/public/browser/navigation_controller.h" |
| 30 #include "content/public/browser/navigation_entry.h" | 30 #include "content/public/browser/navigation_entry.h" |
| 31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
| 32 #include "content/public/common/content_constants.h" | 32 #include "content/public/common/content_constants.h" |
| 33 #include "grit/components_strings.h" | 33 #include "grit/components_strings.h" |
| 34 #include "ipc/ipc_message.h" | 34 #include "ipc/ipc_message.h" |
| 35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
| 36 #include "ui/base/theme_provider.h" | 36 #include "ui/base/theme_provider.h" |
| 37 #include "ui/views/background.h" | 37 #include "ui/views/background.h" |
| 38 #include "ui/views/bubble/bubble_delegate.h" |
| 38 #include "ui/views/controls/webview/webview.h" | 39 #include "ui/views/controls/webview/webview.h" |
| 39 #include "ui/views/layout/grid_layout.h" | 40 #include "ui/views/layout/grid_layout.h" |
| 40 #include "ui/views/layout/layout_constants.h" | 41 #include "ui/views/layout/layout_constants.h" |
| 41 #include "ui/views/view.h" | 42 #include "ui/views/view.h" |
| 42 #include "ui/views/widget/widget.h" | 43 #include "ui/views/widget/widget.h" |
| 43 | 44 |
| 44 using content::WebContents; | 45 using content::WebContents; |
| 45 using views::GridLayout; | 46 using views::GridLayout; |
| 46 | 47 |
| 47 namespace { | 48 namespace { |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 393 |
| 393 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 394 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 394 if (reload_) { | 395 if (reload_) { |
| 395 reload_->ChangeMode( | 396 reload_->ChangeMode( |
| 396 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 397 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 397 force); | 398 force); |
| 398 } | 399 } |
| 399 } | 400 } |
| 400 | 401 |
| 401 } // namespace chromeos | 402 } // namespace chromeos |
| OLD | NEW |