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

Unified Diff: chrome/browser/chromeos/input_method/input_method_whitelist.h

Issue 13042007: Extract input_method_whitelist.{h|cc} from c/b/chromeos. (2nd try) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: replicate input_methods.txt for migration Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/input_method_whitelist.h
diff --git a/chrome/browser/chromeos/input_method/input_method_whitelist.h b/chrome/browser/chromeos/input_method/input_method_whitelist.h
deleted file mode 100644
index f6accdc226c7e3ab46a5795dfdd6bbf19850f70b..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/input_method/input_method_whitelist.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_WHITELIST_H_
-#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_WHITELIST_H_
-
-#include <set>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace chromeos {
-namespace input_method {
-
-class InputMethodDescriptor;
-typedef std::vector<InputMethodDescriptor> InputMethodDescriptors;
-
-//
-class InputMethodWhitelist {
- public:
- InputMethodWhitelist();
- ~InputMethodWhitelist();
-
- // Returns true if |input_method_id| is whitelisted.
- bool InputMethodIdIsWhitelisted(const std::string& input_method_id) const;
-
- // Returns all input methods that are supported, including ones not active.
- // This function never returns NULL. Note that input method extensions are not
- // included in the result.
- scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const;
-
- private:
- std::set<std::string> supported_input_methods_;
-
- DISALLOW_COPY_AND_ASSIGN(InputMethodWhitelist);
-};
-
-} // namespace input_method
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_WHITELIST_H_

Powered by Google App Engine
This is Rietveld 408576698