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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_win.h

Issue 160378: Make TOOLKIT_VIEWS port use views-based Autocomplete popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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) 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 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
7 7
8 #include "views/widget/widget_win.h" 8 #include "views/widget/widget_win.h"
9 9
10 class AutocompleteEditViewWin; 10 class AutocompleteEditView;
11 class AutocompletePopupContentsView; 11 class AutocompletePopupContentsView;
12 12
13 class AutocompletePopupWin : public views::WidgetWin { 13 class AutocompletePopupWin : public views::WidgetWin {
14 public: 14 public:
15 explicit AutocompletePopupWin(AutocompletePopupContentsView* contents); 15 explicit AutocompletePopupWin(AutocompletePopupContentsView* contents);
16 virtual ~AutocompletePopupWin(); 16 virtual ~AutocompletePopupWin();
17 17
18 // Creates the popup and shows it for the first time. |edit_view| is the edit 18 // Creates the popup and shows it for the first time. |edit_view| is the edit
19 // that created us. 19 // that created us.
20 void Init(AutocompleteEditViewWin* edit_view, views::View* contents); 20 void Init(AutocompleteEditView* edit_view, views::View* contents);
21 21
22 // Shows the popup and moves it to the right position. 22 // Shows the popup and moves it to the right position.
23 void Show(); 23 void Show();
24 24
25 // Returns true if the popup is open.
26 bool IsOpen() const;
27
28 // Returns true if the popup has been created.
29 bool IsCreated() const;
30
25 protected: 31 protected:
26 // Overridden from WidgetWin: 32 // Overridden from WidgetWin:
27 virtual LRESULT OnMouseActivate(HWND window, 33 virtual LRESULT OnMouseActivate(HWND window,
28 UINT hit_test, 34 UINT hit_test,
29 UINT mouse_message); 35 UINT mouse_message);
30 36
31 private: 37 private:
32 AutocompletePopupContentsView* contents_; 38 AutocompletePopupContentsView* contents_;
33 39
34 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin); 40 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin);
35 }; 41 };
36 42
37 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 43 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698