1 // Copyright (c) 2010 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 // This file implements the input method candidate window used on Chrome OS. 6 7 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_H_ 8 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_H_ 9 #pragma once 10 11 #include "base/basictypes.h" 12 13 namespace chromeos { 14 15 // CandidateWindowController is used for controlling the input method 16 // candidate window. Once the initialization is done, the controller 17 // starts monitoring signals sent from the the background input method 18 // daemon, and shows and hides the candidate window as neeeded. Upon 19 // deletion of the object, monitoring stops and the view used for 20 // rendering the candidate view is deleted. 21 class CandidateWindowController { 22 public: 23 CandidateWindowController(); 24 virtual ~CandidateWindowController(); 25 26 // Initializes the candidate window. Returns true on success. 27 bool Init(); 28 29 private: 30 class Impl; 31 Impl* impl_; 32 DISALLOW_COPY_AND_ASSIGN(CandidateWindowController); 33 }; 34 35 } // namespace chromeos 36 37 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_H_ 38