Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
Devlin
2016/01/05 18:39:07
Not 2015
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_ | |
| 7 | |
| 8 #include "extensions/browser/extension_function.h" | |
| 9 | |
| 10 namespace extensions { | |
|
Devlin
2016/01/05 18:39:07
\n
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 11 class InputImeEventRouter { | |
| 12 public: | |
| 13 explicit InputImeEventRouter(Profile* profile); | |
| 14 ~InputImeEventRouter(); | |
| 15 | |
| 16 // Called when a key event was handled. | |
| 17 void OnKeyEventHandled(const std::string& extension_id, | |
| 18 const std::string& request_id, | |
| 19 bool handled); | |
| 20 | |
| 21 std::string AddRequest( | |
| 22 const std::string& component_id, | |
| 23 ui::IMEEngineHandlerInterface::KeyEventDoneCallback& key_data); | |
| 24 | |
| 25 private: | |
| 26 typedef std::map< | |
|
Devlin
2016/01/05 18:39:07
using
Devlin
2016/01/05 18:39:07
#include <map>
Azure Wei
2016/01/06 06:53:47
Done.
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 27 std::string, | |
| 28 std::pair<std::string, | |
|
Devlin
2016/01/05 18:39:07
#include <utility>
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 29 ui::IMEEngineHandlerInterface::KeyEventDoneCallback>> | |
| 30 RequestMap; | |
| 31 | |
| 32 // The id of the all registered extensions. | |
| 33 std::vector<std::string> extension_ids_; | |
|
Devlin
2016/01/05 18:39:07
#include <string>
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 34 | |
| 35 unsigned int next_request_id_; | |
| 36 RequestMap request_map_; | |
| 37 Profile* profile_; | |
|
Devlin
2016/01/05 18:39:06
forward declare
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 38 | |
|
Devlin
2016/01/05 18:39:07
base/macros
Azure Wei
2016/01/06 06:53:47
Done.
| |
| 39 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter); | |
| 40 }; | |
| 41 | |
| 42 } // namespace extensions | |
| 43 | |
| 44 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_NONCHROMEOS_H_ | |
| OLD | NEW |