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

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

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the disabled tests Created 6 years, 11 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/task_manager_view.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/toolbar_view.h" 5 #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/i18n/number_formatting.h" 9 #include "base/i18n/number_formatting.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 home_->set_triggerable_event_flags( 205 home_->set_triggerable_event_flags(
206 ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON); 206 ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON);
207 home_->set_tag(IDC_HOME); 207 home_->set_tag(IDC_HOME);
208 home_->SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_HOME)); 208 home_->SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_HOME));
209 home_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_HOME)); 209 home_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_HOME));
210 home_->set_id(VIEW_ID_HOME_BUTTON); 210 home_->set_id(VIEW_ID_HOME_BUTTON);
211 home_->Init(); 211 home_->Init();
212 212
213 browser_actions_ = new BrowserActionsContainer(browser_, this); 213 browser_actions_ = new BrowserActionsContainer(browser_, this);
214 214
215 #if defined(OS_WIN) && !defined(USE_AURA)
216 app_menu_ = new AppMenuButtonWin(this);
217 #else
218 app_menu_ = new WrenchToolbarButton(this); 215 app_menu_ = new WrenchToolbarButton(this);
219 #endif
220 app_menu_->set_border(NULL); 216 app_menu_->set_border(NULL);
221 app_menu_->EnableCanvasFlippingForRTLUI(true); 217 app_menu_->EnableCanvasFlippingForRTLUI(true);
222 app_menu_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_APP)); 218 app_menu_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_APP));
223 app_menu_->SetTooltipText(l10n_util::GetStringUTF16(IDS_APPMENU_TOOLTIP)); 219 app_menu_->SetTooltipText(l10n_util::GetStringUTF16(IDS_APPMENU_TOOLTIP));
224 app_menu_->set_id(VIEW_ID_APP_MENU); 220 app_menu_->set_id(VIEW_ID_APP_MENU);
225 221
226 // Always add children in order from left to right, for accessibility. 222 // Always add children in order from left to right, for accessibility.
227 site_chip_view_ = new SiteChipView(this); 223 site_chip_view_ = new SiteChipView(this);
228 chrome::OriginChipPosition origin_chip_position = 224 chrome::OriginChipPosition origin_chip_position =
229 chrome::GetOriginChipPosition(); 225 chrome::GetOriginChipPosition();
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 829
834 void ToolbarView::OnShowHomeButtonChanged() { 830 void ToolbarView::OnShowHomeButtonChanged() {
835 Layout(); 831 Layout();
836 SchedulePaint(); 832 SchedulePaint();
837 } 833 }
838 834
839 int ToolbarView::content_shadow_height() const { 835 int ToolbarView::content_shadow_height() const {
840 return browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH ? 836 return browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH ?
841 kContentShadowHeightAsh : kContentShadowHeight; 837 kContentShadowHeightAsh : kContentShadowHeight;
842 } 838 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698