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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

Issue 10967036: views: Packaged app window icon should be system/generic icon, if icon is not set by default. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/win/hwnd_message_handler.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void SchedulePaintInRect(const gfx::Rect& rect); 143 void SchedulePaintInRect(const gfx::Rect& rect);
144 void SetOpacity(BYTE opacity); 144 void SetOpacity(BYTE opacity);
145 145
146 void SetWindowIcons(const gfx::ImageSkia& window_icon, 146 void SetWindowIcons(const gfx::ImageSkia& window_icon,
147 const gfx::ImageSkia& app_icon); 147 const gfx::ImageSkia& app_icon);
148 148
149 void set_remove_standard_frame(bool remove_standard_frame) { 149 void set_remove_standard_frame(bool remove_standard_frame) {
150 remove_standard_frame_ = remove_standard_frame; 150 remove_standard_frame_ = remove_standard_frame;
151 } 151 }
152 152
153 void set_use_system_default_icon(bool use_system_default_icon) {
154 use_sytem_default_icon_ = use_system_default_icon;
155 }
156
153 private: 157 private:
154 typedef std::set<DWORD> TouchIDs; 158 typedef std::set<DWORD> TouchIDs;
155 159
156 // Overridden from internal::InputMethodDelegate: 160 // Overridden from internal::InputMethodDelegate:
157 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; 161 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
158 162
159 // Overridden from WindowImpl: 163 // Overridden from WindowImpl:
160 virtual HICON GetDefaultWindowIcon() const OVERRIDE; 164 virtual HICON GetDefaultWindowIcon() const OVERRIDE;
161 virtual LRESULT OnWndProc(UINT message, 165 virtual LRESULT OnWndProc(UINT message,
162 WPARAM w_param, 166 WPARAM w_param,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 void OnWindowPosChanged(WINDOWPOS* window_pos); 364 void OnWindowPosChanged(WINDOWPOS* window_pos);
361 365
362 HWNDMessageHandlerDelegate* delegate_; 366 HWNDMessageHandlerDelegate* delegate_;
363 367
364 scoped_ptr<FullscreenHandler> fullscreen_handler_; 368 scoped_ptr<FullscreenHandler> fullscreen_handler_;
365 369
366 base::WeakPtrFactory<HWNDMessageHandler> close_widget_factory_; 370 base::WeakPtrFactory<HWNDMessageHandler> close_widget_factory_;
367 371
368 bool remove_standard_frame_; 372 bool remove_standard_frame_;
369 373
374 bool use_sytem_default_icon_;
375
370 // Whether the focus should be restored next time we get enabled. Needed to 376 // Whether the focus should be restored next time we get enabled. Needed to
371 // restore focus correctly when Windows modal dialogs are displayed. 377 // restore focus correctly when Windows modal dialogs are displayed.
372 bool restore_focus_when_enabled_; 378 bool restore_focus_when_enabled_;
373 379
374 // Whether all ancestors have been enabled. This is only used if is_modal_ is 380 // Whether all ancestors have been enabled. This is only used if is_modal_ is
375 // true. 381 // true.
376 bool restored_enabled_; 382 bool restored_enabled_;
377 383
378 // The last cursor that was active before the current one was selected. Saved 384 // The last cursor that was active before the current one was selected. Saved
379 // so that we can restore it. 385 // so that we can restore it.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // True if we are allowed to update the layered window from the DIB backing 462 // True if we are allowed to update the layered window from the DIB backing
457 // store if necessary. 463 // store if necessary.
458 bool can_update_layered_window_; 464 bool can_update_layered_window_;
459 465
460 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 466 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
461 }; 467 };
462 468
463 } // namespace views 469 } // namespace views
464 470
465 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 471 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698