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

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

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months 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 | Annotate | Revision Log
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/omnibox/omnibox_view.h" 11 #include "chrome/browser/ui/omnibox/omnibox_view.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 "chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h" 14 #include "chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h"
15 #include "grit/ui_resources.h" 15 #include "grit/ui_resources.h"
16 #include "ui/base/theme_provider.h" 16 #include "ui/base/theme_provider.h"
17 #include "ui/gfx/canvas.h" 17 #include "ui/gfx/canvas.h"
18 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
19 #include "ui/gfx/path.h" 19 #include "ui/gfx/path.h"
20 #include "ui/views/controls/image_view.h" 20 #include "ui/views/controls/image_view.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
22 #include "ui/views/window/non_client_view.h" 22 #include "ui/views/window/non_client_view.h"
23 23
24 #if defined(USE_AURA) 24 #if defined(USE_AURA)
25 #include "ui/views/corewm/window_animations.h" 25 #include "ui/wm/core/window_animations.h"
26 #endif 26 #endif
27 27
28 // This is the number of pixels in the border image interior to the actual 28 // This is the number of pixels in the border image interior to the actual
29 // border. 29 // border.
30 const int kBorderInterior = 6; 30 const int kBorderInterior = 6;
31 31
32 class OmniboxPopupContentsView::AutocompletePopupWidget 32 class OmniboxPopupContentsView::AutocompletePopupWidget
33 : public views::Widget, 33 : public views::Widget,
34 public base::SupportsWeakPtr<AutocompletePopupWidget> { 34 public base::SupportsWeakPtr<AutocompletePopupWidget> {
35 public: 35 public:
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 size_t index = GetIndexForPoint(event.location()); 504 size_t index = GetIndexForPoint(event.location());
505 if (!HasMatchAt(index)) 505 if (!HasMatchAt(index))
506 return; 506 return;
507 omnibox_view_->OpenMatch(model_->result().match_at(index), disposition, 507 omnibox_view_->OpenMatch(model_->result().match_at(index), disposition,
508 GURL(), base::string16(), index); 508 GURL(), base::string16(), index);
509 } 509 }
510 510
511 OmniboxResultView* OmniboxPopupContentsView::result_view_at(size_t i) { 511 OmniboxResultView* OmniboxPopupContentsView::result_view_at(size_t i) {
512 return static_cast<OmniboxResultView*>(child_at(static_cast<int>(i))); 512 return static_cast<OmniboxResultView*>(child_at(static_cast<int>(i)));
513 } 513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698