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 <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
10 #include "chrome/browser/defaults.h" | 10 #include "chrome/browser/defaults.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 12 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/browser/ui/views/frame/browser_frame.h" | 14 #include "chrome/browser/ui/views/frame/browser_frame.h" |
15 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
16 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 16 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
17 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" | 17 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" |
18 #include "components/metrics/proto/omnibox_event.pb.h" | 18 #include "components/metrics/proto/omnibox_event.pb.h" |
19 #include "components/omnibox/browser/autocomplete_classifier.h" | 19 #include "components/omnibox/browser/autocomplete_classifier.h" |
20 #include "components/omnibox/browser/autocomplete_match.h" | 20 #include "components/omnibox/browser/autocomplete_match.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/hit_test.h" | 23 #include "ui/base/hit_test.h" |
24 | 24 |
25 #if defined(OS_LINUX) | |
sky
2016/01/27 03:07:31
Do you really need these includes here?
Evan Stade
2016/01/28 00:08:44
no, this is left over from a previous iteration of
| |
26 #include "ui/native_theme/native_theme_dark_aura.h" | |
27 #endif | |
28 | |
29 #if defined(OS_WIN) | |
30 #include "ui/native_theme/native_theme_dark_win.h" | |
31 #endif | |
32 | |
25 // static | 33 // static |
26 const char BrowserRootView::kViewClassName[] = | 34 const char BrowserRootView::kViewClassName[] = |
27 "browser/ui/views/frame/BrowserRootView"; | 35 "browser/ui/views/frame/BrowserRootView"; |
28 | 36 |
29 BrowserRootView::BrowserRootView(BrowserView* browser_view, | 37 BrowserRootView::BrowserRootView(BrowserView* browser_view, |
30 views::Widget* widget) | 38 views::Widget* widget) |
31 : views::internal::RootView(widget), | 39 : views::internal::RootView(widget), |
32 browser_view_(browser_view), | 40 browser_view_(browser_view), |
33 forwarding_to_tab_strip_(false), | 41 forwarding_to_tab_strip_(false), |
34 scroll_remainder_x_(0), | 42 scroll_remainder_x_(0), |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 browser_view_->browser()->profile())->Classify( | 243 browser_view_->browser()->profile())->Classify( |
236 text, false, false, metrics::OmniboxEventProto::INVALID_SPEC, &match, | 244 text, false, false, metrics::OmniboxEventProto::INVALID_SPEC, &match, |
237 nullptr); | 245 nullptr); |
238 if (!match.destination_url.is_valid()) | 246 if (!match.destination_url.is_valid()) |
239 return false; | 247 return false; |
240 | 248 |
241 if (url) | 249 if (url) |
242 *url = match.destination_url; | 250 *url = match.destination_url; |
243 return true; | 251 return true; |
244 } | 252 } |
OLD | NEW |