| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser. | 34 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser. |
| 35 void LogMostVisitedImpression(int position, const base::string16& provider); | 35 void LogMostVisitedImpression(int position, const base::string16& provider); |
| 36 | 36 |
| 37 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser. | 37 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser. |
| 38 void LogMostVisitedNavigation(int position, const base::string16& provider); | 38 void LogMostVisitedNavigation(int position, const base::string16& provider); |
| 39 | 39 |
| 40 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser. | 40 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser. |
| 41 void CheckIsUserSignedInToChromeAs(const base::string16& identity); | 41 void CheckIsUserSignedInToChromeAs(const base::string16& identity); |
| 42 | 42 |
| 43 // Sends ChromeViewHostMsg_HistorySyncCheck to the browser. |
| 44 void CheckIsUserSyncingHistory(); |
| 45 |
| 43 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser. | 46 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser. |
| 44 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); | 47 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); |
| 45 | 48 |
| 46 // Generates the favicon URL of the most visited item specified by the | 49 // Generates the favicon URL of the most visited item specified by the |
| 47 // |transient_url|. If the |transient_url| is valid, returns true and fills in | 50 // |transient_url|. If the |transient_url| is valid, returns true and fills in |
| 48 // |url|. If the |transient_url| is invalid, returns true and |url| is set to | 51 // |url|. If the |transient_url| is invalid, returns true and |url| is set to |
| 49 // "chrome-search://favicon/" in order to prevent the invalid URL to be | 52 // "chrome-search://favicon/" in order to prevent the invalid URL to be |
| 50 // requested. | 53 // requested. |
| 51 // | 54 // |
| 52 // Valid forms of |transient_url|: | 55 // Valid forms of |transient_url|: |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 private: | 119 private: |
| 117 // Overridden from content::RenderViewObserver: | 120 // Overridden from content::RenderViewObserver: |
| 118 bool OnMessageReceived(const IPC::Message& message) override; | 121 bool OnMessageReceived(const IPC::Message& message) override; |
| 119 | 122 |
| 120 void OnSetPageSequenceNumber(int page_seq_no); | 123 void OnSetPageSequenceNumber(int page_seq_no); |
| 121 void OnChromeIdentityCheckResult(const base::string16& identity, | 124 void OnChromeIdentityCheckResult(const base::string16& identity, |
| 122 bool identity_match); | 125 bool identity_match); |
| 123 void OnDetermineIfPageSupportsInstant(); | 126 void OnDetermineIfPageSupportsInstant(); |
| 124 void OnFocusChanged(OmniboxFocusState new_focus_state, | 127 void OnFocusChanged(OmniboxFocusState new_focus_state, |
| 125 OmniboxFocusChangeReason reason); | 128 OmniboxFocusChangeReason reason); |
| 129 void OnHistorySyncCheckResult(bool sync_history); |
| 126 void OnMarginChange(int margin); | 130 void OnMarginChange(int margin); |
| 127 void OnMostVisitedChanged( | 131 void OnMostVisitedChanged( |
| 128 const std::vector<InstantMostVisitedItem>& items); | 132 const std::vector<InstantMostVisitedItem>& items); |
| 129 void OnPromoInformationReceived(bool is_app_launcher_enabled); | 133 void OnPromoInformationReceived(bool is_app_launcher_enabled); |
| 130 void OnSetDisplayInstantResults(bool display_instant_results); | 134 void OnSetDisplayInstantResults(bool display_instant_results); |
| 131 void OnSetInputInProgress(bool input_in_progress); | 135 void OnSetInputInProgress(bool input_in_progress); |
| 132 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion); | 136 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion); |
| 133 void OnSubmit(const base::string16& query, | 137 void OnSubmit(const base::string16& query, |
| 134 const EmbeddedSearchRequestParams& params); | 138 const EmbeddedSearchRequestParams& params); |
| 135 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); | 139 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 154 ThemeBackgroundInfo theme_info_; | 158 ThemeBackgroundInfo theme_info_; |
| 155 base::string16 query_; | 159 base::string16 query_; |
| 156 EmbeddedSearchRequestParams embedded_search_request_params_; | 160 EmbeddedSearchRequestParams embedded_search_request_params_; |
| 157 int start_margin_; | 161 int start_margin_; |
| 158 InstantSuggestion suggestion_; | 162 InstantSuggestion suggestion_; |
| 159 | 163 |
| 160 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 164 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
| 161 }; | 165 }; |
| 162 | 166 |
| 163 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 167 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| OLD | NEW |