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/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 namespace chromeos { | 100 namespace chromeos { |
101 | 101 |
102 // Stub implementation of ContentSettingBubbleModelDelegate. | 102 // Stub implementation of ContentSettingBubbleModelDelegate. |
103 class StubBubbleModelDelegate : public ContentSettingBubbleModelDelegate { | 103 class StubBubbleModelDelegate : public ContentSettingBubbleModelDelegate { |
104 public: | 104 public: |
105 StubBubbleModelDelegate() {} | 105 StubBubbleModelDelegate() {} |
106 virtual ~StubBubbleModelDelegate() {} | 106 virtual ~StubBubbleModelDelegate() {} |
107 | 107 |
108 // ContentSettingBubbleModelDelegate implementation: | 108 // ContentSettingBubbleModelDelegate implementation: |
109 virtual void ShowCollectedCookiesDialog( | 109 virtual void ShowCollectedCookiesDialog( |
110 content::WebContents* web_contents) OVERRIDE { | 110 content::WebContents* web_contents) override { |
111 } | 111 } |
112 | 112 |
113 virtual void ShowContentSettingsPage(ContentSettingsType type) OVERRIDE { | 113 virtual void ShowContentSettingsPage(ContentSettingsType type) override { |
114 } | 114 } |
115 | 115 |
116 virtual void ShowLearnMorePage(ContentSettingsType type) OVERRIDE { | 116 virtual void ShowLearnMorePage(ContentSettingsType type) override { |
117 } | 117 } |
118 | 118 |
119 private: | 119 private: |
120 DISALLOW_COPY_AND_ASSIGN(StubBubbleModelDelegate); | 120 DISALLOW_COPY_AND_ASSIGN(StubBubbleModelDelegate); |
121 }; | 121 }; |
122 | 122 |
123 // SimpleWebViewDialog class --------------------------------------------------- | 123 // SimpleWebViewDialog class --------------------------------------------------- |
124 | 124 |
125 SimpleWebViewDialog::SimpleWebViewDialog(Profile* profile) | 125 SimpleWebViewDialog::SimpleWebViewDialog(Profile* profile) |
126 : profile_(profile), | 126 : profile_(profile), |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 | 393 |
394 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 394 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
395 if (reload_) { | 395 if (reload_) { |
396 reload_->ChangeMode( | 396 reload_->ChangeMode( |
397 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 397 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
398 force); | 398 force); |
399 } | 399 } |
400 } | 400 } |
401 | 401 |
402 } // namespace chromeos | 402 } // namespace chromeos |
OLD | NEW |