Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 1508203003: Move layout_constants.cc from c/b/ui/views/ to c/b/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: what is mus Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/omnibox/omnibox_popup_contents_view.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/browser/search/search.h" 9 #include "chrome/browser/search/search.h"
10 #include "chrome/browser/themes/theme_properties.h" 10 #include "chrome/browser/themes/theme_properties.h"
11 #include "chrome/browser/ui/views/layout_constants.h" 11 #include "chrome/browser/ui/layout_constants.h"
12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
13 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" 13 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
14 #include "components/omnibox/browser/omnibox_view.h" 14 #include "components/omnibox/browser/omnibox_view.h"
15 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
16 #include "ui/base/resource/material_design/material_design_controller.h" 16 #include "ui/base/resource/material_design/material_design_controller.h"
17 #include "ui/base/theme_provider.h" 17 #include "ui/base/theme_provider.h"
18 #include "ui/compositor/clip_recorder.h" 18 #include "ui/compositor/clip_recorder.h"
19 #include "ui/compositor/paint_recorder.h" 19 #include "ui/compositor/paint_recorder.h"
20 #include "ui/gfx/canvas.h" 20 #include "ui/gfx/canvas.h"
21 #include "ui/gfx/image/image.h" 21 #include "ui/gfx/image/image.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 size_t index = GetIndexForPoint(event.location()); 526 size_t index = GetIndexForPoint(event.location());
527 if (!HasMatchAt(index)) 527 if (!HasMatchAt(index))
528 return; 528 return;
529 omnibox_view_->OpenMatch(model_->result().match_at(index), disposition, 529 omnibox_view_->OpenMatch(model_->result().match_at(index), disposition,
530 GURL(), base::string16(), index); 530 GURL(), base::string16(), index);
531 } 531 }
532 532
533 OmniboxResultView* OmniboxPopupContentsView::result_view_at(size_t i) { 533 OmniboxResultView* OmniboxPopupContentsView::result_view_at(size_t i) {
534 return static_cast<OmniboxResultView*>(child_at(static_cast<int>(i))); 534 return static_cast<OmniboxResultView*>(child_at(static_cast<int>(i)));
535 } 535 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698