OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "chrome/browser/views/autocomplete/autocomplete_popup_win.h" | 5 #include "chrome/browser/views/autocomplete/autocomplete_popup_win.h" |
6 | 6 |
7 #include "app/gfx/insets.h" | 7 #include "app/gfx/insets.h" |
| 8 #include "app/win_util.h" |
8 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 9 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
9 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
10 #include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h" | 11 #include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h" |
11 #include "chrome/common/win_util.h" | |
12 | 12 |
13 //////////////////////////////////////////////////////////////////////////////// | 13 //////////////////////////////////////////////////////////////////////////////// |
14 // AutocompletePopupWin, public: | 14 // AutocompletePopupWin, public: |
15 | 15 |
16 AutocompletePopupWin::AutocompletePopupWin( | 16 AutocompletePopupWin::AutocompletePopupWin( |
17 AutocompletePopupContentsView* contents) | 17 AutocompletePopupContentsView* contents) |
18 : contents_(contents) { | 18 : contents_(contents) { |
19 set_delete_on_destroy(false); | 19 set_delete_on_destroy(false); |
20 set_window_style(WS_POPUP | WS_CLIPCHILDREN); | 20 set_window_style(WS_POPUP | WS_CLIPCHILDREN); |
21 set_window_ex_style(WS_EX_TOOLWINDOW | WS_EX_LAYERED); | 21 set_window_ex_style(WS_EX_TOOLWINDOW | WS_EX_LAYERED); |
(...skipping 28 matching lines...) Expand all Loading... |
50 contents_->GetPopupBounds(), 0, flags); | 50 contents_->GetPopupBounds(), 0, flags); |
51 } | 51 } |
52 | 52 |
53 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
54 // AutocompletePopupWin, WidgetWin overrides: | 54 // AutocompletePopupWin, WidgetWin overrides: |
55 | 55 |
56 LRESULT AutocompletePopupWin::OnMouseActivate(HWND window, UINT hit_test, | 56 LRESULT AutocompletePopupWin::OnMouseActivate(HWND window, UINT hit_test, |
57 UINT mouse_message) { | 57 UINT mouse_message) { |
58 return MA_NOACTIVATE; | 58 return MA_NOACTIVATE; |
59 } | 59 } |
OLD | NEW |