Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / win8 / metro_driver / ime / input_source.h
blob8b057b2e0833a7c47c5eae793a714e381be7e0f5
1 // Copyright 2013 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.
5 #ifndef WIN8_METRO_DRIVER_IME_INPUT_SOURCE_H_
6 #define WIN8_METRO_DRIVER_IME_INPUT_SOURCE_H_
8 #include <Windows.h>
10 #include "base/memory/scoped_ptr.h"
12 namespace metro_driver {
14 class InputSourceObserver;
16 // An interface through which information about the input source can be
17 // retrieved, where an input source represents an IME or a keyboard layout.
18 class InputSource {
19 public:
20 virtual ~InputSource() {}
21 // Create an instance. Returns NULL if fails.
22 static scoped_ptr<InputSource> Create();
24 // Returns true if |langid| and |is_ime| are filled based on the current
25 // active input source.
26 virtual bool GetActiveSource(LANGID* langid, bool* is_ime) = 0;
28 // Adds/Removes an observer to receive notifications when the active input
29 // source is changed.
30 virtual void AddObserver(InputSourceObserver* observer) = 0;
31 virtual void RemoveObserver(InputSourceObserver* observer) = 0;
34 } // namespace metro_driver
36 #endif // WIN8_METRO_DRIVER_IME_INPUT_SOURCE_H_