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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Full patch including mechanical changes Created 4 years, 1 month 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
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 GetAccessibleState(ui::AXViewState* state) override; 71 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
72 72
73 ResultViewState GetState() const; 73 ResultViewState GetState() const;
74 74
75 // Returns the height of the text portion of the result view. In the base 75 // 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. 76 // class, this is the height of one line of text.
77 virtual int GetTextHeight() const; 77 virtual int GetTextHeight() const;
78 78
79 // Returns the display width required for the match contents. 79 // Returns the display width required for the match contents.
80 int GetMatchContentsWidth() const; 80 int GetMatchContentsWidth() const;
81 81
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_; 211 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_;
212 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_; 212 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_;
213 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_; 213 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_;
214 214
215 mutable int separator_width_; 215 mutable int separator_width_;
216 216
217 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); 217 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
218 }; 218 };
219 219
220 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 220 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698