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

Side by Side Diff: base/window_impl.h

Issue 174029: Reverting 23645. (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « no previous file | base/window_impl.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. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_WINDOW_IMPL_H_ 5 #ifndef BASE_WINDOW_IMPL_H_
6 #define BASE_WINDOW_IMPL_H_ 6 #define BASE_WINDOW_IMPL_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 WindowImpl(); 44 WindowImpl();
45 virtual ~WindowImpl(); 45 virtual ~WindowImpl();
46 46
47 // Initializes the Window with a parent and an initial desired size. 47 // Initializes the Window with a parent and an initial desired size.
48 void Init(HWND parent, const gfx::Rect& bounds); 48 void Init(HWND parent, const gfx::Rect& bounds);
49 49
50 // Retrieves the default window icon to use for windows if none is specified. 50 // Retrieves the default window icon to use for windows if none is specified.
51 virtual HICON GetDefaultWindowIcon() const; 51 virtual HICON GetDefaultWindowIcon() const;
52 52
53 // Override this to be notified of the last message.
54 virtual void OnFinalMessage(HWND window) {}
55
56 // Returns the HWND associated with this Window. 53 // Returns the HWND associated with this Window.
57 HWND hwnd() const { return hwnd_; } 54 HWND hwnd() const { return hwnd_; }
58 55
59 // Sets the window styles. This is ONLY used when the window is created. 56 // Sets the window styles. This is ONLY used when the window is created.
60 // In other words, if you invoke this after invoking Init, nothing happens. 57 // In other words, if you invoke this after invoking Init, nothing happens.
61 void set_window_style(DWORD style) { window_style_ = style; } 58 void set_window_style(DWORD style) { window_style_ = style; }
62 DWORD window_style() const { return window_style_; } 59 DWORD window_style() const { return window_style_; }
63 60
64 // Sets the extended window styles. See comment about |set_window_style|. 61 // Sets the extended window styles. See comment about |set_window_style|.
65 void set_window_ex_style(DWORD style) { window_ex_style_ = style; } 62 void set_window_ex_style(DWORD style) { window_ex_style_ = style; }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 101
105 // Our hwnd. 102 // Our hwnd.
106 HWND hwnd_; 103 HWND hwnd_;
107 104
108 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 105 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
109 }; 106 };
110 107
111 } // namespace base 108 } // namespace base
112 109
113 #endif // BASE_WINDOW_IMPL_H_ 110 #endif // BASE_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | base/window_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698