Commit 9a2aebe0 authored by bryeung@chromium.org's avatar bryeung@chromium.org

Move functions out of TOUCH_UI defines.

BUG=105046
TEST=manually


Review URL: http://codereview.chromium.org/8651001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112798 0039d316-1c4b-4281-b951-d872f2087c98
parent 6a33d38f
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
#include "chrome/browser/extensions/extension_input_api.h" #include "chrome/browser/extensions/extension_input_api.h"
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
#include "chrome/browser/extensions/extension_input_ui_api.h" #include "chrome/browser/extensions/extension_input_ui_api.h"
#endif #endif
...@@ -328,7 +328,7 @@ void FactoryRegistry::ResetFunctions() { ...@@ -328,7 +328,7 @@ void FactoryRegistry::ResetFunctions() {
RegisterFunction<UpdateMenuItemsFunction>(); RegisterFunction<UpdateMenuItemsFunction>();
RegisterFunction<InputEventHandled>(); RegisterFunction<InputEventHandled>();
#if defined(TOUCH_UI) #if defined(USE_VIRTUAL_KEYBOARD)
RegisterFunction<CandidateClickedInputUiFunction>(); RegisterFunction<CandidateClickedInputUiFunction>();
RegisterFunction<CursorUpInputUiFunction>(); RegisterFunction<CursorUpInputUiFunction>();
RegisterFunction<CursorDownInputUiFunction>(); RegisterFunction<CursorDownInputUiFunction>();
...@@ -411,7 +411,7 @@ void FactoryRegistry::ResetFunctions() { ...@@ -411,7 +411,7 @@ void FactoryRegistry::ResetFunctions() {
// InputMethod // InputMethod
RegisterFunction<GetInputMethodFunction>(); RegisterFunction<GetInputMethodFunction>();
#if defined(TOUCH_UI) #if defined(USE_VIRTUAL_KEYBOARD)
// Input // Input
RegisterFunction<SendHandwritingStrokeFunction>(); RegisterFunction<SendHandwritingStrokeFunction>();
RegisterFunction<CancelHandwritingStrokesFunction>(); RegisterFunction<CancelHandwritingStrokesFunction>();
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "content/public/browser/notification_service.h" #include "content/public/browser/notification_service.h"
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
#include "chrome/browser/chromeos/input_method/ibus_controller.h" #include "chrome/browser/chromeos/input_method/ibus_controller.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h" #include "chrome/browser/chromeos/input_method/input_method_manager.h"
#include "chrome/browser/chromeos/login/base_login_display_host.h" #include "chrome/browser/chromeos/login/base_login_display_host.h"
...@@ -74,7 +74,7 @@ uint16 UnicodeIdentifierStringToInt(const std::string& key_identifier) { ...@@ -74,7 +74,7 @@ uint16 UnicodeIdentifierStringToInt(const std::string& key_identifier) {
} }
views::Widget* GetTopLevelWidget(Browser* browser) { views::Widget* GetTopLevelWidget(Browser* browser) {
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
chromeos::LoginDisplayHost* host = chromeos::LoginDisplayHost* host =
chromeos::BaseLoginDisplayHost::default_host(); chromeos::BaseLoginDisplayHost::default_host();
if (host) if (host)
...@@ -187,7 +187,7 @@ bool SetKeyboardHeightFunction::RunImpl() { ...@@ -187,7 +187,7 @@ bool SetKeyboardHeightFunction::RunImpl() {
} }
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
// TODO(yusukes): This part should be moved to extension_input_api_chromeos.cc. // TODO(yusukes): This part should be moved to extension_input_api_chromeos.cc.
bool SendHandwritingStrokeFunction::RunImpl() { bool SendHandwritingStrokeFunction::RunImpl() {
// TODO(yusukes): Add a parameter for an input context ID. // TODO(yusukes): Add a parameter for an input context ID.
......
...@@ -37,10 +37,10 @@ class SetKeyboardHeightFunction : public AsyncExtensionFunction { ...@@ -37,10 +37,10 @@ class SetKeyboardHeightFunction : public AsyncExtensionFunction {
}; };
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
// Note that this experimental APIs are currently only available for // Note that these experimental APIs are currently only available for
// TOUCH_UI version of Chrome OS. Please also note that the version of Chrome // versions of Chrome OS built with USE_VIRTUAL_KEYBOARD. Please also note that
// OS is always built with TOOLKIT_VIEWS. // the version of Chrome OS is always built with TOOLKIT_VIEWS.
// //
// We may eventually support other platforms, especially non TOUCH_UI version // We may eventually support other platforms, especially non TOUCH_UI version
// of Chrome OS. // of Chrome OS.
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
#include "webkit/fileapi/file_system_path_manager.h" #include "webkit/fileapi/file_system_path_manager.h"
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
#include "chrome/browser/extensions/extension_input_ui_api.h" #include "chrome/browser/extensions/extension_input_ui_api.h"
#endif #endif
...@@ -511,7 +511,7 @@ void ExtensionService::InitEventRouters() { ...@@ -511,7 +511,7 @@ void ExtensionService::InitEventRouters() {
ExtensionInputImeEventRouter::GetInstance()->Init(); ExtensionInputImeEventRouter::GetInstance()->Init();
#endif #endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI) #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
ExtensionInputUiEventRouter::GetInstance()->Init(); ExtensionInputUiEventRouter::GetInstance()->Init();
#endif #endif
...@@ -1013,7 +1013,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) { ...@@ -1013,7 +1013,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
PluginService::GetInstance()->PurgePluginListCache(profile_, false); PluginService::GetInstance()->PurgePluginListCache(profile_, false);
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
#if defined(TOUCH_UI) #if defined(USE_VIRTUAL_KEYBOARD)
chromeos::input_method::InputMethodManager* input_method_manager = chromeos::input_method::InputMethodManager* input_method_manager =
chromeos::input_method::InputMethodManager::GetInstance(); chromeos::input_method::InputMethodManager::GetInstance();
#endif #endif
...@@ -1025,7 +1025,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) { ...@@ -1025,7 +1025,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
ExtensionInputImeEventRouter::GetInstance()->RegisterIme( ExtensionInputImeEventRouter::GetInstance()->RegisterIme(
profile_, extension->id(), *component); profile_, extension->id(), *component);
} }
#if defined(TOUCH_UI) #if defined(USE_VIRTUAL_KEYBOARD)
if (component->type == Extension::INPUT_COMPONENT_TYPE_VIRTUAL_KEYBOARD && if (component->type == Extension::INPUT_COMPONENT_TYPE_VIRTUAL_KEYBOARD &&
!component->layouts.empty()) { !component->layouts.empty()) {
const bool is_system = const bool is_system =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment