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 "chrome/browser/ui/views/frame/browser_root_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_root_view.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 9 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
10 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 10 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
11 #include "chrome/browser/autocomplete/autocomplete_match.h" | 11 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/omnibox/location_bar.h" | 14 #include "chrome/browser/ui/omnibox/location_bar.h" |
14 #include "chrome/browser/ui/views/frame/browser_frame.h" | 15 #include "chrome/browser/ui/views/frame/browser_frame.h" |
15 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
16 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 17 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
17 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" | 18 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" |
18 #include "chrome/common/chrome_notification_types.h" | |
19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
20 #include "ui/base/accessibility/accessible_view_state.h" | 20 #include "ui/base/accessibility/accessible_view_state.h" |
21 #include "ui/base/dragdrop/drag_drop_types.h" | 21 #include "ui/base/dragdrop/drag_drop_types.h" |
22 #include "ui/base/dragdrop/os_exchange_data.h" | 22 #include "ui/base/dragdrop/os_exchange_data.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 // static | 25 // static |
26 const char BrowserRootView::kViewClassName[] = | 26 const char BrowserRootView::kViewClassName[] = |
27 "browser/ui/views/frame/BrowserRootView"; | 27 "browser/ui/views/frame/BrowserRootView"; |
28 | 28 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 AutocompleteClassifierFactory::GetForProfile( | 169 AutocompleteClassifierFactory::GetForProfile( |
170 browser_view_->browser()->profile())->Classify(text, false, false, &match, | 170 browser_view_->browser()->profile())->Classify(text, false, false, &match, |
171 NULL); | 171 NULL); |
172 if (!match.destination_url.is_valid()) | 172 if (!match.destination_url.is_valid()) |
173 return false; | 173 return false; |
174 | 174 |
175 if (url) | 175 if (url) |
176 *url = match.destination_url; | 176 *url = match.destination_url; |
177 return true; | 177 return true; |
178 } | 178 } |
OLD | NEW |