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

Side by Side Diff: chrome/browser/extensions/extension_input_ui_api.cc

Issue 7033033: Add hideKeyboard API to chrome.experimental.input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_input_ui_api.h" 5 #include "chrome/browser/extensions/extension_input_ui_api.h"
6 6
7 #include "content/common/notification_service.h"
8
9 #if defined(OS_CHROMEOS)
7 #include <algorithm> 10 #include <algorithm>
8 #include <string> 11 #include <string>
9 12
10 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
11 #include "base/logging.h" 14 #include "base/logging.h"
12 #include "base/string_util.h" 15 #include "base/string_util.h"
13 #include "base/values.h" 16 #include "base/values.h"
14 #include "chrome/browser/chromeos/cros/cros_library.h" 17 #include "chrome/browser/chromeos/cros/cros_library.h"
15 #include "chrome/browser/extensions/extension_event_router.h" 18 #include "chrome/browser/extensions/extension_event_router.h"
16 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 profile(), extension_id()); 354 profile(), extension_id());
352 return true; 355 return true;
353 } 356 }
354 357
355 bool PageDownInputUiFunction::RunImpl() { 358 bool PageDownInputUiFunction::RunImpl() {
356 ExtensionInputUiEventRouter::GetInstance()->PageDown( 359 ExtensionInputUiEventRouter::GetInstance()->PageDown(
357 profile(), extension_id()); 360 profile(), extension_id());
358 return true; 361 return true;
359 } 362 }
360 363
364 #endif // OS_CHROMEOS
365
366 bool HideKeyboardInputUiFunction::RunImpl() {
367 NotificationService::current()->Notify(
368 NotificationType::HIDE_KEYBOARD_INVOKED,
369 Source<HideKeyboardInputUiFunction>(this),
370 NotificationService::NoDetails());
371 return true;
372 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698