| 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 UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Clears the selected action. | 56 // Clears the selected action. |
| 57 void ClearSelectedAction(); | 57 void ClearSelectedAction(); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 void UpdateTitleText(); | 60 void UpdateTitleText(); |
| 61 void UpdateDetailsText(); | 61 void UpdateDetailsText(); |
| 62 | 62 |
| 63 // views::View overrides: | 63 // views::View overrides: |
| 64 virtual const char* GetClassName() const OVERRIDE; | 64 virtual const char* GetClassName() const OVERRIDE; |
| 65 virtual gfx::Size GetPreferredSize() OVERRIDE; | 65 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 66 virtual void Layout() OVERRIDE; | 66 virtual void Layout() OVERRIDE; |
| 67 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 67 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 68 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; | 68 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; |
| 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 70 | 70 |
| 71 // views::ButtonListener overrides: | 71 // views::ButtonListener overrides: |
| 72 virtual void ButtonPressed(views::Button* sender, | 72 virtual void ButtonPressed(views::Button* sender, |
| 73 const ui::Event& event) OVERRIDE; | 73 const ui::Event& event) OVERRIDE; |
| 74 | 74 |
| 75 // views::ContextMenuController overrides: | 75 // views::ContextMenuController overrides: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 101 ProgressBarView* progress_bar_; // Owned by views hierarchy. | 101 ProgressBarView* progress_bar_; // Owned by views hierarchy. |
| 102 | 102 |
| 103 scoped_ptr<views::MenuRunner> context_menu_runner_; | 103 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 104 | 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(SearchResultView); | 105 DISALLOW_COPY_AND_ASSIGN(SearchResultView); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace app_list | 108 } // namespace app_list |
| 109 | 109 |
| 110 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ | 110 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_H_ |
| OLD | NEW |