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

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

Issue 1573903002: Change some functions in ImeEngineObserver as not ChromeOS-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 29 matching lines...) Expand all
40 return; 40 return;
41 } 41 }
42 42
43 scoped_ptr<extensions::Event> event( 43 scoped_ptr<extensions::Event> event(
44 new extensions::Event(histogram_value, event_name, std::move(args))); 44 new extensions::Event(histogram_value, event_name, std::move(args)));
45 event->restrict_to_browser_context = profile_; 45 event->restrict_to_browser_context = profile_;
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 std::string GetCurrentScreenType() override {
51 return "normal";
52 }
53
50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); 54 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS);
51 }; 55 };
52 56
53 } // namespace 57 } // namespace
54 58
55 namespace extensions { 59 namespace extensions {
56 60
57 bool InputImeEventRouter::RegisterImeExtension( 61 bool InputImeEventRouter::RegisterImeExtension(
58 const std::string& extension_id, 62 const std::string& extension_id,
59 const std::vector<extensions::InputComponentInfo>& input_components) { 63 const std::vector<extensions::InputComponentInfo>& input_components) {
60 return false; 64 return false;
61 } 65 }
62 66
63 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {} 67 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {}
64 68
65 } // namespace extensions 69 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc ('k') | ui/base/ime/ime_engine_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698