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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.h

Issue 2578443002: Refresh appearance of omnibox results when native theme changes. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void ShowKeyword(bool show_keyword); 62 void ShowKeyword(bool show_keyword);
63 63
64 void Invalidate(); 64 void Invalidate();
65 65
66 // Invoked when this result view has been selected. 66 // Invoked when this result view has been selected.
67 void OnSelected(); 67 void OnSelected();
68 68
69 // views::View: 69 // views::View:
70 gfx::Size GetPreferredSize() const override; 70 gfx::Size GetPreferredSize() const override;
71 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 71 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
72 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
72 73
73 ResultViewState GetState() const; 74 ResultViewState GetState() const;
74 75
75 // Returns the height of the text portion of the result view. In the base 76 // Returns the height of the text portion of the result view. In the base
76 // class, this is the height of one line of text. 77 // class, this is the height of one line of text.
77 virtual int GetTextHeight() const; 78 virtual int GetTextHeight() const;
78 79
79 // Returns the display width required for the match contents. 80 // Returns the display width required for the match contents.
80 int GetMatchContentsWidth() const; 81 int GetMatchContentsWidth() const;
81 82
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_; 212 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_;
212 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_; 213 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_;
213 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_; 214 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_;
214 215
215 mutable int separator_width_; 216 mutable int separator_width_;
216 217
217 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); 218 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
218 }; 219 };
219 220
220 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 221 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698