blob: bdfa28ee9cecdf74fbf63600cbce7674dd532a31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
#define CHROME_BROWSER_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
#include "ash/ime_control_delegate.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
// A class which controls ime when an IME shortcut key such as Control+space is
// pressed.
class ImeController : public ash::ImeControlDelegate {
public:
ImeController() {}
virtual ~ImeController() {}
// Overridden from ash::ImeControlDelegate:
virtual bool HandleNextIme() OVERRIDE;
virtual bool HandlePreviousIme(const ui::Accelerator& accelerator) OVERRIDE;
virtual bool HandleSwitchIme(const ui::Accelerator& accelerator) OVERRIDE;
virtual ui::Accelerator RemapAccelerator(
const ui::Accelerator& accelerator) OVERRIDE;
private:
bool UsingFrenchInputMethod() const;
DISALLOW_COPY_AND_ASSIGN(ImeController);
};
#endif // CHROME_BROWSER_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
|