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

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

Issue 10059001: Merge 131673 - Make WindowImpl take into account the icon in the class registrar. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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 | ui/base/win/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) 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>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // 42 //
43 /////////////////////////////////////////////////////////////////////////////// 43 ///////////////////////////////////////////////////////////////////////////////
44 class UI_EXPORT WindowImpl : public MessageMapInterface { 44 class UI_EXPORT WindowImpl : public MessageMapInterface {
45 public: 45 public:
46 WindowImpl(); 46 WindowImpl();
47 virtual ~WindowImpl(); 47 virtual ~WindowImpl();
48 48
49 // Initializes the Window with a parent and an initial desired size. 49 // Initializes the Window with a parent and an initial desired size.
50 void Init(HWND parent, const gfx::Rect& bounds); 50 void Init(HWND parent, const gfx::Rect& bounds);
51 51
52 // Retrieves the default window icon to use for windows if none is specified. 52 // Returns the default window icon to use for windows of this type.
53 virtual HICON GetDefaultWindowIcon() const; 53 virtual HICON GetDefaultWindowIcon() const;
54 54
55 // Returns the HWND associated with this Window. 55 // Returns the HWND associated with this Window.
56 HWND hwnd() const { return hwnd_; } 56 HWND hwnd() const { return hwnd_; }
57 57
58 // Sets the window styles. This is ONLY used when the window is created. 58 // Sets the window styles. This is ONLY used when the window is created.
59 // In other words, if you invoke this after invoking Init, nothing happens. 59 // In other words, if you invoke this after invoking Init, nothing happens.
60 void set_window_style(DWORD style) { window_style_ = style; } 60 void set_window_style(DWORD style) { window_style_ = style; }
61 DWORD window_style() const { return window_style_; } 61 DWORD window_style() const { return window_style_; }
62 62
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Our hwnd. 104 // Our hwnd.
105 HWND hwnd_; 105 HWND hwnd_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 107 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
108 }; 108 };
109 109
110 } // namespace ui 110 } // namespace ui
111 111
112 #endif // UI_BASE_WIN_WINDOW_IMPL_H_ 112 #endif // UI_BASE_WIN_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/win/window_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698