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

Unified Diff: chrome_frame/ready_mode/internal/ready_prompt_window.cc

Issue 6321025: Further modifications to the Ready Mode UI in response to feedback. Height, i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/ready_mode/internal/ready_prompt_window.cc
===================================================================
--- chrome_frame/ready_mode/internal/ready_prompt_window.cc (revision 72496)
+++ chrome_frame/ready_mode/internal/ready_prompt_window.cc (working copy)
@@ -28,9 +28,12 @@
: frame_(frame),
ready_mode_state_(ready_mode_state),
url_launcher_(url_launcher),
+ icon_(NULL),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
}
ReadyPromptWindow::~ReadyPromptWindow() {
+ if (icon_)
+ ::DestroyIcon(icon_);
}
base::WeakPtr<ReadyPromptWindow> ReadyPromptWindow::CreateInstance(
@@ -58,6 +61,16 @@
instance->link_->SetHyperLinkExtendedStyle(HLINK_NOTIFYBUTTON,
HLINK_NOTIFYBUTTON);
+ CStatic icon_control(instance->GetDlgItem(IDC_PROMPT_ICON));
+
+ instance->icon_ = static_cast<HICON>(
+ ::LoadImage(_AtlBaseModule.GetResourceInstance(),
+ MAKEINTRESOURCE(IDI_CHROME_FRAME_ICON),
+ IMAGE_ICON, 16, 16, 0));
+
+ if (instance->icon_)
+ icon_control.SetIcon(instance->icon_);
+
return instance;
}
« no previous file with comments | « chrome_frame/ready_mode/internal/ready_prompt_window.h ('k') | chrome_frame/resources/npchrome_frame.dll.manifest » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698