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

Side by Side Diff: chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc

Issue 1554983002: Build chrome.input.ime.* API in GN mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove class InputImeEventRouter from input_ime_api.h to input_ime_api_chromeos/nonchromeos.h Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This file is for non-chromeos (win & linux) functions, such as 5 // This file is for non-chromeos (win & linux) functions, such as
6 // chrome.input.ime.activate, chrome.input.ime.createWindow and 6 // chrome.input.ime.activate, chrome.input.ime.createWindow and
7 // chrome.input.ime.onSelectionChanged. 7 // chrome.input.ime.onSelectionChanged.
8 // TODO(azurewei): May refactor the code structure by using delegate or 8 // TODO(azurewei): May refactor the code structure by using delegate or
9 // redesign the API to remove this platform-specific file in the future. 9 // redesign the API to remove this platform-specific file in the future.
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 extensions::EventRouter::Get(profile_) 46 extensions::EventRouter::Get(profile_)
47 ->DispatchEventToExtension(extension_id_, std::move(event)); 47 ->DispatchEventToExtension(extension_id_, std::move(event));
48 } 48 }
49 49
50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); 50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS);
51 }; 51 };
52 52
53 } // namespace 53 } // namespace
54 54
55 namespace extensions { 55 namespace extensions {
56 void InputImeAPI::OnExtensionLoaded(content::BrowserContext* browser_context,
57 const Extension* extension) {}
56 58
57 bool InputImeEventRouter::RegisterImeExtension( 59 void InputImeAPI::OnExtensionUnloaded(content::BrowserContext* browser_context,
58 const std::string& extension_id, 60 const Extension* extension,
59 const std::vector<extensions::InputComponentInfo>& input_components) { 61 UnloadedExtensionInfo::Reason reason) {}
60 return false;
61 }
62 62
63 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {} 63 void InputImeAPI::OnListenerAdded(const EventListenerInfo& details) {}
64 64
65 } // namespace extensions 65 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698