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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 11091050: InstantExtended: Add js api for custom logo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
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_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 explicit SearchBox(content::RenderView* render_view); 28 explicit SearchBox(content::RenderView* render_view);
29 virtual ~SearchBox(); 29 virtual ~SearchBox();
30 30
31 // Sends ViewHostMsg_SetSuggestions to the browser. 31 // Sends ViewHostMsg_SetSuggestions to the browser.
32 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); 32 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions);
33 33
34 // Sends ViewHostMsg_SetInstantPreviewHeight to the browser. 34 // Sends ViewHostMsg_SetInstantPreviewHeight to the browser.
35 void SetInstantPreviewHeight(int height, InstantSizeUnits units); 35 void SetInstantPreviewHeight(int height, InstantSizeUnits units);
36 36
37 // Sends ViewHostMsg_SetHasCustomLogo to the browser.
38 void SetHasCustomLogo(bool has_logo);
39
37 bool is_focused() const { return is_focused_; } 40 bool is_focused() const { return is_focused_; }
38 const string16& query() const { return query_; } 41 const string16& query() const { return query_; }
39 bool verbatim() const { return verbatim_; } 42 bool verbatim() const { return verbatim_; }
40 size_t selection_start() const { return selection_start_; } 43 size_t selection_start() const { return selection_start_; }
41 size_t selection_end() const { return selection_end_; } 44 size_t selection_end() const { return selection_end_; }
42 int results_base() const { return results_base_; } 45 int results_base() const { return results_base_; }
43 bool active_tab_is_ntp() const { return active_tab_is_ntp_; } 46 bool active_tab_is_ntp() const { return active_tab_is_ntp_; }
44 47
45 gfx::Rect GetRect(); 48 gfx::Rect GetRect();
46 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults(); 49 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 std::vector<InstantAutocompleteResult> autocomplete_results_; 82 std::vector<InstantAutocompleteResult> autocomplete_results_;
80 size_t last_results_base_; 83 size_t last_results_base_;
81 std::vector<InstantAutocompleteResult> last_autocomplete_results_; 84 std::vector<InstantAutocompleteResult> last_autocomplete_results_;
82 bool is_focused_; 85 bool is_focused_;
83 bool active_tab_is_ntp_; 86 bool active_tab_is_ntp_;
84 87
85 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBox); 88 DISALLOW_IMPLICIT_CONSTRUCTORS(SearchBox);
86 }; 89 };
87 90
88 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 91 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698