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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 forward_->set_triggerable_event_flags(ui::EF_LEFT_MOUSE_BUTTON | | 175 forward_->set_triggerable_event_flags(ui::EF_LEFT_MOUSE_BUTTON | |
176 ui::EF_MIDDLE_MOUSE_BUTTON); | 176 ui::EF_MIDDLE_MOUSE_BUTTON); |
177 forward_->set_tag(IDC_FORWARD); | 177 forward_->set_tag(IDC_FORWARD); |
178 forward_->SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_FORWARD)); | 178 forward_->SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_FORWARD)); |
179 forward_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_FORWARD)); | 179 forward_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_FORWARD)); |
180 forward_->set_id(VIEW_ID_FORWARD_BUTTON); | 180 forward_->set_id(VIEW_ID_FORWARD_BUTTON); |
181 | 181 |
182 toolbar_model_.reset(new ToolbarModel(this)); | 182 toolbar_model_.reset(new ToolbarModel(this)); |
183 | 183 |
184 // Location bar. | 184 // Location bar. |
185 location_bar_ = new LocationBarView(profile_, | 185 location_bar_ = new LocationBarView(NULL, |
| 186 profile_, |
186 command_updater_.get(), | 187 command_updater_.get(), |
187 toolbar_model_.get(), | 188 toolbar_model_.get(), |
188 this, | 189 this, |
189 NULL, // no SearchModel | 190 NULL, // no SearchModel |
190 LocationBarView::POPUP); | 191 LocationBarView::POPUP); |
191 | 192 |
192 // Reload button. | 193 // Reload button. |
193 reload_ = new ReloadButton(location_bar_, command_updater_.get()); | 194 reload_ = new ReloadButton(location_bar_, command_updater_.get()); |
194 reload_->set_triggerable_event_flags(ui::EF_LEFT_MOUSE_BUTTON | | 195 reload_->set_triggerable_event_flags(ui::EF_LEFT_MOUSE_BUTTON | |
195 ui::EF_MIDDLE_MOUSE_BUTTON); | 196 ui::EF_MIDDLE_MOUSE_BUTTON); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 399 |
399 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 400 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
400 if (reload_) { | 401 if (reload_) { |
401 reload_->ChangeMode( | 402 reload_->ChangeMode( |
402 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 403 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
403 force); | 404 force); |
404 } | 405 } |
405 } | 406 } |
406 | 407 |
407 } // namespace chromeos | 408 } // namespace chromeos |
OLD | NEW |