blob: affe0a91fb6c3e584b34f04ff39494b7343e5f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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.
#ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
#define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
#include "base/weak_ptr.h"
#include "views/widget/widget_win.h"
class AutocompleteEditView;
class AutocompletePopupContentsView;
class AutocompletePopupWin
: public views::WidgetWin,
public base::SupportsWeakPtr<AutocompletePopupWin> {
public:
// Creates the popup and shows it. |edit_view| is the edit that created us.
AutocompletePopupWin(AutocompleteEditView* edit_view,
AutocompletePopupContentsView* contents);
virtual ~AutocompletePopupWin();
private:
// Overridden from WidgetWin:
virtual LRESULT OnMouseActivate(HWND window,
UINT hit_test,
UINT mouse_message);
DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin);
};
#endif // CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
|