| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/input_method/candidate_window.h" | 5 #include "chrome/browser/chromeos/input_method/candidate_window.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
| 17 #include "base/timer.h" | 17 #include "base/timer.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" | 19 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "ui/gfx/canvas.h" | 22 #include "ui/gfx/canvas.h" |
| 23 #include "ui/gfx/font.h" | 23 #include "ui/gfx/font.h" |
| 24 #include "ui/gfx/screen.h" | 24 #include "ui/gfx/screen.h" |
| 25 #include "ui/views/window/non_client_view.h" |
| 25 #include "views/controls/label.h" | 26 #include "views/controls/label.h" |
| 26 #include "views/controls/textfield/textfield.h" | 27 #include "views/controls/textfield/textfield.h" |
| 27 #include "views/events/event.h" | 28 #include "views/events/event.h" |
| 28 #include "views/layout/fill_layout.h" | 29 #include "views/layout/fill_layout.h" |
| 29 #include "views/layout/grid_layout.h" | 30 #include "views/layout/grid_layout.h" |
| 30 #include "views/widget/widget.h" | 31 #include "views/widget/widget.h" |
| 31 #include "views/window/non_client_view.h" | |
| 32 | 32 |
| 33 namespace chromeos { | 33 namespace chromeos { |
| 34 namespace input_method { | 34 namespace input_method { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 // Colors used in the candidate window UI. | 38 // Colors used in the candidate window UI. |
| 39 const SkColor kFrameColor = SkColorSetRGB(0x96, 0x96, 0x96); | 39 const SkColor kFrameColor = SkColorSetRGB(0x96, 0x96, 0x96); |
| 40 const SkColor kShortcutBackgroundColor = SkColorSetARGB(0x10, 0x3, 0x4, 0xf); | 40 const SkColor kShortcutBackgroundColor = SkColorSetARGB(0x10, 0x3, 0x4, 0xf); |
| 41 const SkColor kSelectedRowBackgroundColor = SkColorSetRGB(0xd1, 0xea, 0xff); | 41 const SkColor kSelectedRowBackgroundColor = SkColorSetRGB(0xd1, 0xea, 0xff); |
| (...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 CandidateWindowController::~CandidateWindowController() { | 1821 CandidateWindowController::~CandidateWindowController() { |
| 1822 delete impl_; | 1822 delete impl_; |
| 1823 } | 1823 } |
| 1824 | 1824 |
| 1825 bool CandidateWindowController::Init() { | 1825 bool CandidateWindowController::Init() { |
| 1826 return impl_->Init(); | 1826 return impl_->Init(); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 } // namespace input_method | 1829 } // namespace input_method |
| 1830 } // namespace chromeos | 1830 } // namespace chromeos |
| OLD | NEW |