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

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

Issue 10533046: TabContentsWrapper -> TabContents, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compiling is good Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 wrench_menu_->Init(&model); 370 wrench_menu_->Init(&model);
371 371
372 FOR_EACH_OBSERVER(views::MenuListener, menu_listeners_, OnMenuOpened()); 372 FOR_EACH_OBSERVER(views::MenuListener, menu_listeners_, OnMenuOpened());
373 373
374 wrench_menu_->RunMenu(app_menu_); 374 wrench_menu_->RunMenu(app_menu_);
375 } 375 }
376 376
377 //////////////////////////////////////////////////////////////////////////////// 377 ////////////////////////////////////////////////////////////////////////////////
378 // ToolbarView, LocationBarView::Delegate implementation: 378 // ToolbarView, LocationBarView::Delegate implementation:
379 379
380 TabContentsWrapper* ToolbarView::GetTabContentsWrapper() const { 380 TabContents* ToolbarView::GetTabContents() const {
381 return browser_->GetSelectedTabContentsWrapper(); 381 return browser_->GetActiveTabContents();
382 } 382 }
383 383
384 InstantController* ToolbarView::GetInstant() { 384 InstantController* ToolbarView::GetInstant() {
385 return browser_->instant(); 385 return browser_->instant();
386 } 386 }
387 387
388 ContentSettingBubbleModelDelegate* 388 ContentSettingBubbleModelDelegate*
389 ToolbarView::GetContentSettingBubbleModelDelegate() { 389 ToolbarView::GetContentSettingBubbleModelDelegate() {
390 return browser_->content_setting_bubble_model_delegate(); 390 return browser_->content_setting_bubble_model_delegate();
391 } 391 }
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 accname_app = l10n_util::GetStringFUTF16( 819 accname_app = l10n_util::GetStringFUTF16(
820 IDS_ACCNAME_APP_UPGRADE_RECOMMENDED, accname_app); 820 IDS_ACCNAME_APP_UPGRADE_RECOMMENDED, accname_app);
821 } 821 }
822 app_menu_->SetAccessibleName(accname_app); 822 app_menu_->SetAccessibleName(accname_app);
823 823
824 app_menu_->SetIcon(GetAppMenuIcon(views::CustomButton::BS_NORMAL)); 824 app_menu_->SetIcon(GetAppMenuIcon(views::CustomButton::BS_NORMAL));
825 app_menu_->SetHoverIcon(GetAppMenuIcon(views::CustomButton::BS_HOT)); 825 app_menu_->SetHoverIcon(GetAppMenuIcon(views::CustomButton::BS_HOT));
826 app_menu_->SetPushedIcon(GetAppMenuIcon(views::CustomButton::BS_PUSHED)); 826 app_menu_->SetPushedIcon(GetAppMenuIcon(views::CustomButton::BS_PUSHED));
827 SchedulePaint(); 827 SchedulePaint();
828 } 828 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698