Home | History | Annotate | Download | only in input_method
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      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_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
      6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
      7 
      8 #include <string>
      9 
     10 #include "base/basictypes.h"
     11 #include "base/compiler_specific.h"
     12 #include "chromeos/ime/input_method_delegate.h"
     13 
     14 namespace chromeos {
     15 namespace input_method {
     16 
     17 // Accesses the hardware keyboard layout and application locale from the
     18 // BrowserProcess.
     19 class InputMethodDelegateImpl : public InputMethodDelegate {
     20  public:
     21   InputMethodDelegateImpl();
     22 
     23   // InputMethodDelegate implementation.
     24   virtual std::string GetHardwareKeyboardLayout() const OVERRIDE;
     25   virtual string16 GetLocalizedString(int resource_id) const OVERRIDE;
     26   virtual string16 GetDisplayLanguageName(
     27       const std::string& language_code) const OVERRIDE;
     28 
     29  private:
     30   DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl);
     31 };
     32 
     33 }  // namespace input_method
     34 }  // namespace chromeos
     35 
     36 #endif  // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
     37