Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: chrome/browser/chromeos/login/simple_web_view_dialog.cc

Issue 11418043: Remove TabContents from OmniboxEditController and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 NOTIMPLEMENTED(); 265 NOTIMPLEMENTED();
266 return NULL; 266 return NULL;
267 } 267 }
268 268
269 void SimpleWebViewDialog::LoadingStateChanged(WebContents* source) { 269 void SimpleWebViewDialog::LoadingStateChanged(WebContents* source) {
270 bool is_loading = source->IsLoading(); 270 bool is_loading = source->IsLoading();
271 UpdateReload(is_loading, false); 271 UpdateReload(is_loading, false);
272 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading); 272 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading);
273 } 273 }
274 274
275 TabContents* SimpleWebViewDialog::GetTabContents() const { 275 WebContents* SimpleWebViewDialog::GetWebContents() const {
276 return NULL; 276 return NULL;
277 } 277 }
278 278
279 InstantController* SimpleWebViewDialog::GetInstant() { 279 InstantController* SimpleWebViewDialog::GetInstant() {
280 return NULL; 280 return NULL;
281 } 281 }
282 282
283 views::Widget* SimpleWebViewDialog::CreateViewsBubble( 283 views::Widget* SimpleWebViewDialog::CreateViewsBubble(
284 views::BubbleDelegateView* bubble_delegate) { 284 views::BubbleDelegateView* bubble_delegate) {
285 return views::BubbleDelegateView::CreateBubble(bubble_delegate); 285 return views::BubbleDelegateView::CreateBubble(bubble_delegate);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { 391 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) {
392 if (reload_) { 392 if (reload_) {
393 reload_->ChangeMode( 393 reload_->ChangeMode(
394 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, 394 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD,
395 force); 395 force);
396 } 396 }
397 } 397 }
398 398
399 } // namespace chromeos 399 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/simple_web_view_dialog.h ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698