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