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

Side by Side Diff: chrome/browser/ui/browser_commands.cc

Issue 154083008: Remove Tabpose feature on mac, and supporting infrastructure (PaintAtSize) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, merge Created 6 years, 10 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/browser_commands.h ('k') | chrome/browser/ui/browser_window.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser_commands.h" 5 #include "chrome/browser/ui/browser_commands.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 void SelectNextTab(Browser* browser) { 548 void SelectNextTab(Browser* browser) {
549 content::RecordAction(UserMetricsAction("SelectNextTab")); 549 content::RecordAction(UserMetricsAction("SelectNextTab"));
550 browser->tab_strip_model()->SelectNextTab(); 550 browser->tab_strip_model()->SelectNextTab();
551 } 551 }
552 552
553 void SelectPreviousTab(Browser* browser) { 553 void SelectPreviousTab(Browser* browser) {
554 content::RecordAction(UserMetricsAction("SelectPrevTab")); 554 content::RecordAction(UserMetricsAction("SelectPrevTab"));
555 browser->tab_strip_model()->SelectPreviousTab(); 555 browser->tab_strip_model()->SelectPreviousTab();
556 } 556 }
557 557
558 void OpenTabpose(Browser* browser) {
559 #if defined(OS_MACOSX)
560 if (!CommandLine::ForCurrentProcess()->HasSwitch(
561 switches::kEnableExposeForTabs)) {
562 return;
563 }
564
565 content::RecordAction(UserMetricsAction("OpenTabpose"));
566 browser->window()->OpenTabpose();
567 #else
568 NOTREACHED();
569 #endif
570 }
571
572 void MoveTabNext(Browser* browser) { 558 void MoveTabNext(Browser* browser) {
573 content::RecordAction(UserMetricsAction("MoveTabNext")); 559 content::RecordAction(UserMetricsAction("MoveTabNext"));
574 browser->tab_strip_model()->MoveTabNext(); 560 browser->tab_strip_model()->MoveTabNext();
575 } 561 }
576 562
577 void MoveTabPrevious(Browser* browser) { 563 void MoveTabPrevious(Browser* browser) {
578 content::RecordAction(UserMetricsAction("MoveTabPrevious")); 564 content::RecordAction(UserMetricsAction("MoveTabPrevious"));
579 browser->tab_strip_model()->MoveTabPrevious(); 565 browser->tab_strip_model()->MoveTabPrevious();
580 } 566 }
581 567
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(), 1175 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(),
1190 browser->host_desktop_type())); 1176 browser->host_desktop_type()));
1191 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1177 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1192 1178
1193 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1179 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1194 contents->GetRenderViewHost()->SyncRendererPrefs(); 1180 contents->GetRenderViewHost()->SyncRendererPrefs();
1195 app_browser->window()->Show(); 1181 app_browser->window()->Show();
1196 } 1182 }
1197 1183
1198 } // namespace chrome 1184 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698