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

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

Issue 14225016: Add key to focus infobars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« 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/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 void FocusAppMenu(Browser* browser) { 846 void FocusAppMenu(Browser* browser) {
847 content::RecordAction(UserMetricsAction("FocusAppMenu")); 847 content::RecordAction(UserMetricsAction("FocusAppMenu"));
848 browser->window()->FocusAppMenu(); 848 browser->window()->FocusAppMenu();
849 } 849 }
850 850
851 void FocusBookmarksToolbar(Browser* browser) { 851 void FocusBookmarksToolbar(Browser* browser) {
852 content::RecordAction(UserMetricsAction("FocusBookmarksToolbar")); 852 content::RecordAction(UserMetricsAction("FocusBookmarksToolbar"));
853 browser->window()->FocusBookmarksToolbar(); 853 browser->window()->FocusBookmarksToolbar();
854 } 854 }
855 855
856 void FocusInfobars(Browser* browser) {
857 content::RecordAction(UserMetricsAction("FocusInfobars"));
858 browser->window()->FocusInfobars();
859 }
860
856 void FocusNextPane(Browser* browser) { 861 void FocusNextPane(Browser* browser) {
857 content::RecordAction(UserMetricsAction("FocusNextPane")); 862 content::RecordAction(UserMetricsAction("FocusNextPane"));
858 browser->window()->RotatePaneFocus(true); 863 browser->window()->RotatePaneFocus(true);
859 } 864 }
860 865
861 void FocusPreviousPane(Browser* browser) { 866 void FocusPreviousPane(Browser* browser) {
862 content::RecordAction(UserMetricsAction("FocusPreviousPane")); 867 content::RecordAction(UserMetricsAction("FocusPreviousPane"));
863 browser->window()->RotatePaneFocus(false); 868 browser->window()->RotatePaneFocus(false);
864 } 869 }
865 870
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(), 1094 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(),
1090 browser->host_desktop_type())); 1095 browser->host_desktop_type()));
1091 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1096 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1092 1097
1093 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1098 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1094 contents->GetRenderViewHost()->SyncRendererPrefs(); 1099 contents->GetRenderViewHost()->SyncRendererPrefs();
1095 app_browser->window()->Show(); 1100 app_browser->window()->Show();
1096 } 1101 }
1097 1102
1098 } // namespace chrome 1103 } // 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