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

Side by Side Diff: views/views_delegate.h

Issue 1664001: Fixes possible crash if the window hosting a menu was closed while the (Closed)
Patch Set: Incorporated review feedback Created 10 years, 8 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
« no previous file with comments | « views/views.gyp ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 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 VIEWS_VIEWS_DELEGATE_H_ 5 #ifndef VIEWS_VIEWS_DELEGATE_H_
6 #define VIEWS_VIEWS_DELEGATE_H_ 6 #define VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
11 #endif 11 #endif
(...skipping 30 matching lines...) Expand all
42 // Retrieves the saved maximized state for the window with the specified 42 // Retrieves the saved maximized state for the window with the specified
43 // name. 43 // name.
44 virtual bool GetSavedMaximizedState(const std::wstring& window_name, 44 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
45 bool* maximized) const = 0; 45 bool* maximized) const = 0;
46 46
47 #if defined(OS_WIN) 47 #if defined(OS_WIN)
48 // Retrieves the default window icon to use for windows if none is specified. 48 // Retrieves the default window icon to use for windows if none is specified.
49 virtual HICON GetDefaultWindowIcon() const = 0; 49 virtual HICON GetDefaultWindowIcon() const = 0;
50 #endif 50 #endif
51 51
52 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to
53 // ensure we don't attempt to exit while a menu is showing.
54 virtual void AddRef() = 0;
55 virtual void ReleaseRef() = 0;
56
52 // The active ViewsDelegate used by the views system. 57 // The active ViewsDelegate used by the views system.
53 static ViewsDelegate* views_delegate; 58 static ViewsDelegate* views_delegate;
54 }; 59 };
55 60
56 } // namespace views 61 } // namespace views
57 62
58 #endif // #ifndef VIEWS_VIEWS_DELEGATE_H_ 63 #endif // #ifndef VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/views.gyp ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698