| 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 UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ | 5 #ifndef UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ |
| 6 #define UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ | 6 #define UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/base/ime/candidate_window.h" | 10 #include "ui/base/ime/candidate_window.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Sets infolist icon. | 34 // Sets infolist icon. |
| 35 void SetInfolistIcon(bool enable); | 35 void SetInfolistIcon(bool enable); |
| 36 | 36 |
| 37 void SetHighlighted(bool highlighted); | 37 void SetHighlighted(bool highlighted); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 friend class CandidateWindowViewTest; | 40 friend class CandidateWindowViewTest; |
| 41 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest); | 41 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest); |
| 42 | 42 |
| 43 // Overridden from views::CustomButton: | 43 // Overridden from views::CustomButton: |
| 44 void StateChanged() override; | 44 void StateChanged(ButtonState old_state) override; |
| 45 | 45 |
| 46 // Overridden from View: | 46 // Overridden from View: |
| 47 const char* GetClassName() const override; | 47 const char* GetClassName() const override; |
| 48 bool OnMouseDragged(const ui::MouseEvent& event) override; | 48 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 49 void Layout() override; | 49 void Layout() override; |
| 50 gfx::Size GetPreferredSize() const override; | 50 gfx::Size GetPreferredSize() const override; |
| 51 | 51 |
| 52 // The orientation of the candidate view. | 52 // The orientation of the candidate view. |
| 53 ui::CandidateWindow::Orientation orientation_; | 53 ui::CandidateWindow::Orientation orientation_; |
| 54 | 54 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 68 int candidate_width_; | 68 int candidate_width_; |
| 69 bool highlighted_; | 69 bool highlighted_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(CandidateView); | 71 DISALLOW_COPY_AND_ASSIGN(CandidateView); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace ime | 74 } // namespace ime |
| 75 } // namespace ui | 75 } // namespace ui |
| 76 | 76 |
| 77 #endif // UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ | 77 #endif // UI_CHROMEOS_IME_CANDIDATE_VIEW_H_ |
| OLD | NEW |