Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: ui/app_list/views/search_result_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/search_result_list_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/search_result_list_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698