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

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

Issue 10834079: views: Extract Widget observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 "chrome/browser/ui/omnibox/omnibox_view.h" 7 #include "chrome/browser/ui/omnibox/omnibox_view.h"
8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
9 #include "chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h" 9 #include "chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h"
10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" 10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
11 #include "chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h" 11 #include "chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h"
12 #include "ui/base/theme_provider.h" 12 #include "ui/base/theme_provider.h"
13 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/path.h" 14 #include "ui/gfx/path.h"
15 #include "ui/views/widget/widget.h"
15 16
16 #if defined(OS_WIN) 17 #if defined(OS_WIN)
17 #include <dwmapi.h> 18 #include <dwmapi.h>
18 19
19 #include "base/win/scoped_gdi_object.h" 20 #include "base/win/scoped_gdi_object.h"
20 #if !defined(USE_AURA) 21 #if !defined(USE_AURA)
21 #include "ui/views/widget/native_widget_win.h" 22 #include "ui/views/widget/native_widget_win.h"
22 #endif 23 #endif
23 #endif 24 #endif
24 #if defined(USE_ASH) 25 #if defined(USE_ASH)
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 if (HasMatchAt(index) && should_set_selected_line) 548 if (HasMatchAt(index) && should_set_selected_line)
548 model_->SetSelectedLine(index, false, false); 549 model_->SetSelectedLine(index, false, false);
549 } 550 }
550 551
551 void OmniboxPopupContentsView::OpenSelectedLine( 552 void OmniboxPopupContentsView::OpenSelectedLine(
552 const views::LocatedEvent& event, 553 const views::LocatedEvent& event,
553 WindowOpenDisposition disposition) { 554 WindowOpenDisposition disposition) {
554 size_t index = GetIndexForPoint(event.location()); 555 size_t index = GetIndexForPoint(event.location());
555 OpenIndex(index, disposition); 556 OpenIndex(index, disposition);
556 } 557 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698