| OLD | NEW |
| 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 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_view_ios.h" | 5 #include "ios/chrome/browser/ui/omnibox/omnibox_popup_view_ios.h" |
| 6 | 6 |
| 7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
| 12 #include "base/metrics/user_metrics.h" | 12 #include "base/metrics/user_metrics.h" |
| 13 #include "base/metrics/user_metrics_action.h" | 13 #include "base/metrics/user_metrics_action.h" |
| 14 #include "base/threading/sequenced_worker_pool.h" |
| 14 #include "components/omnibox/browser/autocomplete_match.h" | 15 #include "components/omnibox/browser/autocomplete_match.h" |
| 15 #include "components/omnibox/browser/omnibox_edit_model.h" | 16 #include "components/omnibox/browser/omnibox_edit_model.h" |
| 16 #include "components/omnibox/browser/omnibox_popup_model.h" | 17 #include "components/omnibox/browser/omnibox_popup_model.h" |
| 17 #include "components/open_from_clipboard/clipboard_recent_content.h" | 18 #include "components/open_from_clipboard/clipboard_recent_content.h" |
| 18 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 19 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 19 #import "ios/chrome/browser/experimental_flags.h" | 20 #import "ios/chrome/browser/experimental_flags.h" |
| 20 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_material_view_controller.h" | 21 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_material_view_controller.h" |
| 21 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h" | 22 #import "ios/chrome/browser/ui/omnibox/omnibox_popup_positioner.h" |
| 22 #include "ios/chrome/browser/ui/omnibox/omnibox_util.h" | 23 #include "ios/chrome/browser/ui/omnibox/omnibox_util.h" |
| 23 #include "ios/chrome/browser/ui/omnibox/omnibox_view_ios.h" | 24 #include "ios/chrome/browser/ui/omnibox/omnibox_view_ios.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 UMA_HISTOGRAM_LONG_TIMES_100( | 292 UMA_HISTOGRAM_LONG_TIMES_100( |
| 292 "MobileOmnibox.PressedClipboardSuggestionAge", | 293 "MobileOmnibox.PressedClipboardSuggestionAge", |
| 293 ClipboardRecentContent::GetInstance()->GetClipboardContentAge()); | 294 ClipboardRecentContent::GetInstance()->GetClipboardContentAge()); |
| 294 } | 295 } |
| 295 edit_view_->OpenMatch(match, disposition, GURL(), base::string16(), row); | 296 edit_view_->OpenMatch(match, disposition, GURL(), base::string16(), row); |
| 296 } | 297 } |
| 297 | 298 |
| 298 bool OmniboxPopupViewIOS::IsOpen() const { | 299 bool OmniboxPopupViewIOS::IsOpen() const { |
| 299 return is_open_; | 300 return is_open_; |
| 300 } | 301 } |
| OLD | NEW |