OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ |
7 | 7 |
8 #include "base/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "ui/views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 namespace input_method { | 12 namespace input_method { |
13 | 13 |
14 // This class implements widget which can show/hide with given delay. | 14 // This class implements widget which can show/hide with given delay. |
15 class DelayableWidget : public views::Widget { | 15 class DelayableWidget : public views::Widget { |
16 public: | 16 public: |
17 DelayableWidget(); | 17 DelayableWidget(); |
18 virtual ~DelayableWidget(); | 18 virtual ~DelayableWidget(); |
(...skipping 17 matching lines...) Expand all Loading... |
36 private: | 36 private: |
37 base::OneShotTimer<DelayableWidget> show_hide_timer_; | 37 base::OneShotTimer<DelayableWidget> show_hide_timer_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(DelayableWidget); | 39 DISALLOW_COPY_AND_ASSIGN(DelayableWidget); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace input_method | 42 } // namespace input_method |
43 } // namespace chromeos | 43 } // namespace chromeos |
44 | 44 |
45 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ | 45 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_DELAYABLE_WIDGET_H_ |
OLD | NEW |