| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |