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

Side by Side Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 6814029: Revert 80519 - Move favicon from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 months 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/toolbar_view.h" 5 #include "chrome/browser/ui/views/toolbar_view.h"
6 6
7 #include "base/i18n/number_formatting.h" 7 #include "base/i18n/number_formatting.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/accessibility/browser_accessibility_state.h" 10 #include "chrome/browser/accessibility/browser_accessibility_state.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 wrench_menu_->RunMenu(app_menu_); 314 wrench_menu_->RunMenu(app_menu_);
315 315
316 if (destroyed_flag) 316 if (destroyed_flag)
317 return; 317 return;
318 destroyed_flag_ = NULL; 318 destroyed_flag_ = NULL;
319 } 319 }
320 320
321 //////////////////////////////////////////////////////////////////////////////// 321 ////////////////////////////////////////////////////////////////////////////////
322 // ToolbarView, LocationBarView::Delegate implementation: 322 // ToolbarView, LocationBarView::Delegate implementation:
323 323
324 TabContentsWrapper* ToolbarView::GetTabContentsWrapper() const { 324 TabContentsWrapper* ToolbarView::GetTabContentsWrapper() {
325 return browser_->GetSelectedTabContentsWrapper(); 325 return browser_->GetSelectedTabContentsWrapper();
326 } 326 }
327 327
328 InstantController* ToolbarView::GetInstant() { 328 InstantController* ToolbarView::GetInstant() {
329 return browser_->instant(); 329 return browser_->instant();
330 } 330 }
331 331
332 void ToolbarView::OnInputInProgress(bool in_progress) { 332 void ToolbarView::OnInputInProgress(bool in_progress) {
333 // The edit should make sure we're only notified when something changes. 333 // The edit should make sure we're only notified when something changes.
334 DCHECK(model_->input_in_progress() != in_progress); 334 DCHECK(model_->input_in_progress() != in_progress);
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 NOTREACHED(); 747 NOTREACHED();
748 #endif 748 #endif
749 } else { 749 } else {
750 NOTREACHED(); 750 NOTREACHED();
751 } 751 }
752 752
753 canvas->DrawBitmapInt(badge, icon.width() - badge.width(), kBadgeTopMargin); 753 canvas->DrawBitmapInt(badge, icon.width() - badge.width(), kBadgeTopMargin);
754 754
755 return canvas->ExtractBitmap(); 755 return canvas->ExtractBitmap();
756 } 756 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | chrome/browser/ui/web_applications/web_app_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698