summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
commit213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch)
tree3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/autocomplete/autocomplete_popup_win.cc
parent6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff)
downloadchromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2
Move browser/views to browser/ui/views
TBR=brettw BUG=none TEST=none Review URL: http://codereview.chromium.org/4694005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/autocomplete/autocomplete_popup_win.cc')
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_win.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_win.cc b/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
deleted file mode 100644
index e720108..0000000
--- a/chrome/browser/views/autocomplete/autocomplete_popup_win.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/views/autocomplete/autocomplete_popup_win.h"
-
-#include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
-#include "chrome/browser/autocomplete/autocomplete_popup_model.h"
-#include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h"
-#include "gfx/insets.h"
-
-////////////////////////////////////////////////////////////////////////////////
-// AutocompletePopupWin, public:
-
-AutocompletePopupWin::AutocompletePopupWin(
- AutocompleteEditView* edit_view,
- AutocompletePopupContentsView* contents) {
- // Create the popup.
- set_window_style(WS_POPUP | WS_CLIPCHILDREN);
- set_window_ex_style(WS_EX_TOOLWINDOW | WS_EX_LAYERED);
- WidgetWin::Init(GetAncestor(edit_view->GetNativeView(), GA_ROOT),
- contents->GetPopupBounds());
- // The contents is owned by the LocationBarView.
- contents->set_parent_owned(false);
- SetContentsView(contents);
-
- // When an IME is attached to the rich-edit control, retrieve its window
- // handle and show this popup window under the IME windows.
- // Otherwise, show this popup window under top-most windows.
- // TODO(hbono): http://b/1111369 if we exclude this popup window from the
- // display area of IME windows, this workaround becomes unnecessary.
- HWND ime_window = ImmGetDefaultIMEWnd(edit_view->GetNativeView());
- SetWindowPos(ime_window ? ime_window : HWND_NOTOPMOST, 0, 0, 0, 0,
- SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW);
-}
-
-AutocompletePopupWin::~AutocompletePopupWin() {
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// AutocompletePopupWin, WidgetWin overrides:
-
-LRESULT AutocompletePopupWin::OnMouseActivate(HWND window, UINT hit_test,
- UINT mouse_message) {
- return MA_NOACTIVATE;
-}