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

Side by Side Diff: chrome/browser/chromeos/extensions/input_method_event_router.h

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 10 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 (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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 9 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
10 10
(...skipping 16 matching lines...) Expand all
27 const input_method::InputMethodDescriptor& current_input_method, 27 const input_method::InputMethodDescriptor& current_input_method,
28 size_t num_active_input_methods) OVERRIDE; 28 size_t num_active_input_methods) OVERRIDE;
29 virtual void PropertyListChanged( 29 virtual void PropertyListChanged(
30 input_method::InputMethodManager* manager, 30 input_method::InputMethodManager* manager,
31 const input_method::ImePropertyList& current_ime_properties) OVERRIDE; 31 const input_method::ImePropertyList& current_ime_properties) OVERRIDE;
32 32
33 // Returns input method name for the given XKB (X keyboard extensions in X 33 // Returns input method name for the given XKB (X keyboard extensions in X
34 // Window System) id. 34 // Window System) id.
35 std::string GetInputMethodForXkb(const std::string& xkb_id); 35 std::string GetInputMethodForXkb(const std::string& xkb_id);
36 36
37 // Returns whether the extension is allowed to use input method API.
38 bool IsExtensionWhitelisted(const std::string& extension_id);
39
40 private: 37 private:
41 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); 38 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter);
42 }; 39 };
43 40
44 } // namespace chromeos 41 } // namespace chromeos
45 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ 42 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/extensions/input_method_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698