OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GFX_WINDOW_IMPL_H_ | 5 #ifndef APP_WIN_WINDOW_IMPL_H_ |
6 #define GFX_WINDOW_IMPL_H_ | 6 #define APP_WIN_WINDOW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
11 #include <atlmisc.h> | 11 #include <atlmisc.h> |
12 #include <atlcrack.h> | 12 #include <atlcrack.h> |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "gfx/native_widget_types.h" | 17 #include "gfx/native_widget_types.h" |
18 #include "gfx/rect.h" | 18 #include "gfx/rect.h" |
19 | 19 |
20 namespace gfx { | 20 namespace app { |
| 21 namespace win { |
21 | 22 |
22 // An interface implemented by classes that use message maps. | 23 // An interface implemented by classes that use message maps. |
23 // ProcessWindowMessage is implemented by the BEGIN_MESSAGE_MAP_EX macro. | 24 // ProcessWindowMessage is implemented by the BEGIN_MESSAGE_MAP_EX macro. |
24 class MessageMapInterface { | 25 class MessageMapInterface { |
25 public: | 26 public: |
26 // Processes one message from the window's message queue. | 27 // Processes one message from the window's message queue. |
27 virtual BOOL ProcessWindowMessage(HWND window, | 28 virtual BOOL ProcessWindowMessage(HWND window, |
28 UINT message, | 29 UINT message, |
29 WPARAM w_param, | 30 WPARAM w_param, |
30 LPARAM l_param, | 31 LPARAM l_param, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 103 |
103 // Style of the class to use. | 104 // Style of the class to use. |
104 UINT class_style_; | 105 UINT class_style_; |
105 | 106 |
106 // Our hwnd. | 107 // Our hwnd. |
107 HWND hwnd_; | 108 HWND hwnd_; |
108 | 109 |
109 DISALLOW_COPY_AND_ASSIGN(WindowImpl); | 110 DISALLOW_COPY_AND_ASSIGN(WindowImpl); |
110 }; | 111 }; |
111 | 112 |
112 } // namespace gfx | 113 } // namespace win |
| 114 } // namespace app |
113 | 115 |
114 #endif // GFX_WINDOW_IMPL_H_ | 116 #endif // APP_WIN_WINDOW_IMPL_H_ |
OLD | NEW |