Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 9085f5f4e7c88e796d383d3f03151cc54d0c0f66..36f285194f1d1c5ed5a828fb87d2bbad9b1a11d6 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -1461,6 +1461,10 @@ void Browser::Search() { |
// Otherwise just open it. |
NewTab(); |
} |
+ |
+void Browser::ShowKeyboardOverlay() { |
+ window_->ShowKeyboardOverlay(window()->GetNativeHandle()); |
xiyuan
2010/12/01 17:20:41
nit: It's better to be consistent, either use wind
mazda
2010/12/02 04:13:31
Done.
|
+} |
#endif |
void Browser::Exit() { |
@@ -2129,6 +2133,7 @@ void Browser::ExecuteCommandWithDisposition( |
case IDC_TOGGLE_VERTICAL_TABS: ToggleUseVerticalTabs(); break; |
#if defined(OS_CHROMEOS) |
case IDC_SEARCH: Search(); break; |
+ case IDC_SHOW_KEYBOARD_OVERLAY: ShowKeyboardOverlay(); break; |
#endif |
// Page-related commands |
@@ -3469,6 +3474,7 @@ void Browser::InitCommandState() { |
#if defined(OS_CHROMEOS) |
command_updater_.UpdateCommandEnabled(IDC_SEARCH, true); |
+ command_updater_.UpdateCommandEnabled(IDC_SHOW_KEYBOARD_OVERLAY, true); |
command_updater_.UpdateCommandEnabled(IDC_SYSTEM_OPTIONS, true); |
command_updater_.UpdateCommandEnabled(IDC_INTERNET_OPTIONS, true); |
#endif |