| 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 #include "chrome/renderer/searchbox/searchbox.h" | 5 #include "chrome/renderer/searchbox/searchbox.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 uint64_t now = (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()) | 260 uint64_t now = (base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()) |
| 261 .InMilliseconds(); | 261 .InMilliseconds(); |
| 262 DCHECK(now >= start); | 262 DCHECK(now >= start); |
| 263 delta = base::TimeDelta::FromMilliseconds(now - start); | 263 delta = base::TimeDelta::FromMilliseconds(now - start); |
| 264 } | 264 } |
| 265 render_view()->Send(new ChromeViewHostMsg_LogEvent( | 265 render_view()->Send(new ChromeViewHostMsg_LogEvent( |
| 266 render_view()->GetRoutingID(), page_seq_no_, event, delta)); | 266 render_view()->GetRoutingID(), page_seq_no_, event, delta)); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void SearchBox::LogMostVisitedImpression(int position, | 269 void SearchBox::LogMostVisitedImpression(int position, |
| 270 NTPLoggingTileSource tile_source) { | 270 ntp_tiles::NTPTileSource tile_source) { |
| 271 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedImpression( | 271 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedImpression( |
| 272 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); | 272 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void SearchBox::LogMostVisitedNavigation(int position, | 275 void SearchBox::LogMostVisitedNavigation(int position, |
| 276 NTPLoggingTileSource tile_source) { | 276 ntp_tiles::NTPTileSource tile_source) { |
| 277 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedNavigation( | 277 render_view()->Send(new ChromeViewHostMsg_LogMostVisitedNavigation( |
| 278 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); | 278 render_view()->GetRoutingID(), page_seq_no_, position, tile_source)); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) { | 281 void SearchBox::CheckIsUserSignedInToChromeAs(const base::string16& identity) { |
| 282 render_view()->Send(new ChromeViewHostMsg_ChromeIdentityCheck( | 282 render_view()->Send(new ChromeViewHostMsg_ChromeIdentityCheck( |
| 283 render_view()->GetRoutingID(), page_seq_no_, identity)); | 283 render_view()->GetRoutingID(), page_seq_no_, identity)); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void SearchBox::CheckIsUserSyncingHistory() { | 286 void SearchBox::CheckIsUserSyncingHistory() { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 embedded_search_request_params_ = EmbeddedSearchRequestParams(); | 515 embedded_search_request_params_ = EmbeddedSearchRequestParams(); |
| 516 suggestion_ = InstantSuggestion(); | 516 suggestion_ = InstantSuggestion(); |
| 517 is_focused_ = false; | 517 is_focused_ = false; |
| 518 is_key_capture_enabled_ = false; | 518 is_key_capture_enabled_ = false; |
| 519 theme_info_ = ThemeBackgroundInfo(); | 519 theme_info_ = ThemeBackgroundInfo(); |
| 520 } | 520 } |
| 521 | 521 |
| 522 void SearchBox::OnDestruct() { | 522 void SearchBox::OnDestruct() { |
| 523 delete this; | 523 delete this; |
| 524 } | 524 } |
| OLD | NEW |