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

Side by Side Diff: views/views_delegate.h

Issue 115378: Move Always On Top setting out of Window/WindowDelegate and into task manager... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
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 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>
(...skipping 10 matching lines...) Expand all
21 // framework. It is used to obtain various high level application utilities 21 // framework. It is used to obtain various high level application utilities
22 // and perform some actions such as window placement saving. 22 // and perform some actions such as window placement saving.
23 // 23 //
24 // The embedding app must set views_delegate to assign its ViewsDelegate 24 // The embedding app must set views_delegate to assign its ViewsDelegate
25 // implementation. 25 // implementation.
26 class ViewsDelegate { 26 class ViewsDelegate {
27 public: 27 public:
28 // Gets the clipboard. 28 // Gets the clipboard.
29 virtual Clipboard* GetClipboard() const = 0; 29 virtual Clipboard* GetClipboard() const = 0;
30 30
31 // Saves the position, size, maximized and always-on-top state for the 31 // Saves the position, size and maximized state for the window with the
32 // window with the specified name. 32 // specified name.
33 virtual void SaveWindowPlacement(const std::wstring& window_name, 33 virtual void SaveWindowPlacement(const std::wstring& window_name,
34 const gfx::Rect& bounds, 34 const gfx::Rect& bounds,
35 bool maximized, 35 bool maximized) = 0;
36 bool always_on_top) = 0;
37 36
38 // Retrieves the saved position and size for the window with the specified 37 // Retrieves the saved position and size for the window with the specified
39 // name. 38 // name.
40 virtual bool GetSavedWindowBounds(const std::wstring& window_name, 39 virtual bool GetSavedWindowBounds(const std::wstring& window_name,
41 gfx::Rect* bounds) const = 0; 40 gfx::Rect* bounds) const = 0;
42 41
43 // Retrieves the saved maximized state for the window with the specified 42 // Retrieves the saved maximized state for the window with the specified
44 // name. 43 // name.
45 virtual bool GetSavedMaximizedState(const std::wstring& window_name, 44 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
46 bool* maximized) const = 0; 45 bool* maximized) const = 0;
47 46
48 // Retrieves the saved always-on-top state for the window with the specified
49 // name.
50 virtual bool GetSavedAlwaysOnTopState(const std::wstring& window_name,
51 bool* always_on_top) const = 0;
52
53 #if defined(OS_WIN) 47 #if defined(OS_WIN)
54 // 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.
55 virtual HICON GetDefaultWindowIcon() const = 0; 49 virtual HICON GetDefaultWindowIcon() const = 0;
56 #endif 50 #endif
57 51
58 // The active ViewsDelegate used by the views system. 52 // The active ViewsDelegate used by the views system.
59 static ViewsDelegate* views_delegate; 53 static ViewsDelegate* views_delegate;
60 }; 54 };
61 55
62 } // namespace views 56 } // namespace views
63 57
64 #endif // #ifndef VIEWS_VIEWS_DELEGATE_H_ 58 #endif // #ifndef VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« chrome/browser/task_manager_win.cc ('K') | « views/DEPS ('k') | views/window/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698