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

Side by Side Diff: ui/base/win/window_impl.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_BASE_WIN_WINDOW_IMPL_H_ 5 #ifndef UI_BASE_WIN_WINDOW_IMPL_H_
6 #define UI_BASE_WIN_WINDOW_IMPL_H_ 6 #define UI_BASE_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 "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 #include "ui/ui_api.h"
19 20
20 namespace ui { 21 namespace ui {
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,
31 LRESULT& result, 32 LRESULT& result,
32 DWORD msg_mad_id = 0) = 0; 33 DWORD msg_mad_id = 0) = 0;
33 }; 34 };
34 35
35 /////////////////////////////////////////////////////////////////////////////// 36 ///////////////////////////////////////////////////////////////////////////////
36 // 37 //
37 // WindowImpl 38 // WindowImpl
38 // A convenience class that encapsulates the details of creating and 39 // A convenience class that encapsulates the details of creating and
39 // destroying a HWND. This class also hosts the windows procedure used by all 40 // destroying a HWND. This class also hosts the windows procedure used by all
40 // Windows. 41 // Windows.
41 // 42 //
42 /////////////////////////////////////////////////////////////////////////////// 43 ///////////////////////////////////////////////////////////////////////////////
43 class WindowImpl : public MessageMapInterface { 44 class UI_API WindowImpl : public MessageMapInterface {
44 public: 45 public:
45 WindowImpl(); 46 WindowImpl();
46 virtual ~WindowImpl(); 47 virtual ~WindowImpl();
47 48
48 // Initializes the Window with a parent and an initial desired size. 49 // Initializes the Window with a parent and an initial desired size.
49 void Init(HWND parent, const gfx::Rect& bounds); 50 void Init(HWND parent, const gfx::Rect& bounds);
50 51
51 // Retrieves the default window icon to use for windows if none is specified. 52 // Retrieves the default window icon to use for windows if none is specified.
52 virtual HICON GetDefaultWindowIcon() const; 53 virtual HICON GetDefaultWindowIcon() const;
53 54
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 // Our hwnd. 104 // Our hwnd.
104 HWND hwnd_; 105 HWND hwnd_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 107 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
107 }; 108 };
108 109
109 } // namespace ui 110 } // namespace ui
110 111
111 #endif // UI_BASE_WIN_WINDOW_IMPL_H_ 112 #endif // UI_BASE_WIN_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « ui/base/win/shell.h ('k') | ui/base/x/active_window_watcher_x.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698