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

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

Issue 391011: Avoid inconsistent state (leading to checkfailures) due to Windows minimize/r... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 AutocompleteEditView; 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 // Creates the popup and shows it. |edit_view| is the edit that created us.
16 AutocompletePopupWin(AutocompleteEditView* edit_view,
17 AutocompletePopupContentsView* contents);
16 virtual ~AutocompletePopupWin(); 18 virtual ~AutocompletePopupWin();
17 19
18 // Overridden from WidgetWin: 20 private:
19 virtual void Show();
20 virtual void Hide();
21
22 // Creates the popup and shows it for the first time. |edit_view| is the edit
23 // that created us.
24 void Init(AutocompleteEditView* edit_view, views::View* contents);
25
26 // Returns true if the popup is open.
27 bool IsOpen() const;
28
29 // Returns true if the popup has been created.
30 bool IsCreated() const;
31
32 protected:
33 // Overridden from WidgetWin: 21 // Overridden from WidgetWin:
34 virtual LRESULT OnMouseActivate(HWND window, 22 virtual LRESULT OnMouseActivate(HWND window,
35 UINT hit_test, 23 UINT hit_test,
36 UINT mouse_message); 24 UINT mouse_message);
37 25
38 private:
39 AutocompletePopupContentsView* contents_;
40
41 bool is_open_; // Used only for sanity-checking.
42
43 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin); 26 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin);
44 }; 27 };
45 28
46 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 29 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698