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

Side by Side Diff: base/window_impl.h

Issue 165188: Use base::WindowImpl instead of CWindowImpl to reduce dependencies on ATL.... (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') | webkit/tools/test_shell/foreground_helper.h » ('J')
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 13 matching lines...) Expand all
24 // A convenience class that encapsulates the details of creating and 24 // A convenience class that encapsulates the details of creating and
25 // destroying a HWND. This class also hosts the windows procedure used by all 25 // destroying a HWND. This class also hosts the windows procedure used by all
26 // Windows. 26 // Windows.
27 // 27 //
28 /////////////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////////////
29 class WindowImpl { 29 class WindowImpl {
30 public: 30 public:
31 WindowImpl(); 31 WindowImpl();
32 virtual ~WindowImpl(); 32 virtual ~WindowImpl();
33 33
34 BEGIN_MSG_MAP_EX(WidgetWin) 34 BEGIN_MSG_MAP_EX(WindowImpl)
35 // No messages to handle 35 // No messages to handle
36 END_MSG_MAP() 36 END_MSG_MAP()
37 37
38 // Initialize the Window with a parent and an initial desired size. 38 // Initialize the Window with a parent and an initial desired size.
39 virtual void Init(HWND parent, const gfx::Rect& bounds); 39 virtual void Init(HWND parent, const gfx::Rect& bounds);
40 40
41 // Returns the gfx::NativeView associated with this Window. 41 // Returns the gfx::NativeView associated with this Window.
42 virtual gfx::NativeView GetNativeView() const; 42 virtual gfx::NativeView GetNativeView() const;
43 43
44 // Retrieves the default window icon to use for windows if none is specified. 44 // Retrieves the default window icon to use for windows if none is specified.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // Our hwnd. 96 // Our hwnd.
97 HWND hwnd_; 97 HWND hwnd_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 99 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
100 }; 100 };
101 101
102 } // namespace base 102 } // namespace base
103 103
104 #endif // BASE_WINDOW_IMPL_H_ 104 #endif // BASE_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | base/window_impl.cc » ('j') | webkit/tools/test_shell/foreground_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698