OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_IME_INFOLIST_WINDOW_H_ | 5 #ifndef UI_CHROMEOS_IME_INFOLIST_WINDOW_H_ |
6 #define ASH_IME_INFOLIST_WINDOW_H_ | 6 #define UI_CHROMEOS_IME_INFOLIST_WINDOW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_export.h" | |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
14 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
15 #include "ui/base/ime/infolist_entry.h" | 14 #include "ui/base/ime/infolist_entry.h" |
| 15 #include "ui/chromeos/ui_chromeos_export.h" |
16 #include "ui/gfx/font_list.h" | 16 #include "ui/gfx/font_list.h" |
17 #include "ui/views/bubble/bubble_delegate.h" | 17 #include "ui/views/bubble/bubble_delegate.h" |
18 | 18 |
19 namespace ash { | 19 namespace ui { |
20 namespace ime { | 20 namespace ime { |
21 | 21 |
22 class InfolistEntryView; | 22 class InfolistEntryView; |
23 | 23 |
24 // A widget delegate representing the infolist window UI. | 24 // A widget delegate representing the infolist window UI. |
25 class ASH_EXPORT InfolistWindow : public views::BubbleDelegateView { | 25 class UI_CHROMEOS_EXPORT InfolistWindow : public views::BubbleDelegateView { |
26 public: | 26 public: |
27 InfolistWindow(views::View* candidate_window, | 27 InfolistWindow(views::View* candidate_window, |
28 const std::vector<ui::InfolistEntry>& entries); | 28 const std::vector<ui::InfolistEntry>& entries); |
29 ~InfolistWindow() override; | 29 ~InfolistWindow() override; |
30 void InitWidget(); | 30 void InitWidget(); |
31 | 31 |
32 // Updates infolist contents with |entries|. | 32 // Updates infolist contents with |entries|. |
33 void Relayout(const std::vector<ui::InfolistEntry>& entries); | 33 void Relayout(const std::vector<ui::InfolistEntry>& entries); |
34 | 34 |
35 // Show/hide itself with a delay. | 35 // Show/hide itself with a delay. |
(...skipping 16 matching lines...) Expand all Loading... |
52 | 52 |
53 // Information description font. | 53 // Information description font. |
54 gfx::FontList description_font_list_; | 54 gfx::FontList description_font_list_; |
55 | 55 |
56 base::OneShotTimer<views::Widget> show_hide_timer_; | 56 base::OneShotTimer<views::Widget> show_hide_timer_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(InfolistWindow); | 58 DISALLOW_COPY_AND_ASSIGN(InfolistWindow); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace ime | 61 } // namespace ime |
62 } // namespace ash | 62 } // namespace ui |
63 | 63 |
64 #endif // ASH_IME_INFOLIST_WINDOW_H_ | 64 #endif // UI_CHROMEOS_IME_INFOLIST_WINDOW_H_ |
OLD | NEW |