OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autocomplete/autocomplete_popup_win.h" | 5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_win.h" |
6 | 6 |
7 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 7 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
8 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 8 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" | 9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" |
10 #include "gfx/insets.h" | 10 #include "ui/gfx/insets.h" |
11 | 11 |
12 //////////////////////////////////////////////////////////////////////////////// | 12 //////////////////////////////////////////////////////////////////////////////// |
13 // AutocompletePopupWin, public: | 13 // AutocompletePopupWin, public: |
14 | 14 |
15 AutocompletePopupWin::AutocompletePopupWin( | 15 AutocompletePopupWin::AutocompletePopupWin( |
16 AutocompleteEditView* edit_view, | 16 AutocompleteEditView* edit_view, |
17 AutocompletePopupContentsView* contents) { | 17 AutocompletePopupContentsView* contents) { |
18 // Create the popup. | 18 // Create the popup. |
19 set_window_style(WS_POPUP | WS_CLIPCHILDREN); | 19 set_window_style(WS_POPUP | WS_CLIPCHILDREN); |
20 set_window_ex_style(WS_EX_TOOLWINDOW | WS_EX_LAYERED); | 20 set_window_ex_style(WS_EX_TOOLWINDOW | WS_EX_LAYERED); |
(...skipping 16 matching lines...) Expand all Loading... |
37 AutocompletePopupWin::~AutocompletePopupWin() { | 37 AutocompletePopupWin::~AutocompletePopupWin() { |
38 } | 38 } |
39 | 39 |
40 //////////////////////////////////////////////////////////////////////////////// | 40 //////////////////////////////////////////////////////////////////////////////// |
41 // AutocompletePopupWin, WidgetWin overrides: | 41 // AutocompletePopupWin, WidgetWin overrides: |
42 | 42 |
43 LRESULT AutocompletePopupWin::OnMouseActivate(HWND window, UINT hit_test, | 43 LRESULT AutocompletePopupWin::OnMouseActivate(HWND window, UINT hit_test, |
44 UINT mouse_message) { | 44 UINT mouse_message) { |
45 return MA_NOACTIVATE; | 45 return MA_NOACTIVATE; |
46 } | 46 } |
OLD | NEW |