Chromium Code Reviews| Index: chrome_frame/turndown_prompt/turndown_prompt_window.h |
| diff --git a/chrome_frame/turndown_prompt/turndown_prompt_window.h b/chrome_frame/turndown_prompt/turndown_prompt_window.h |
| index 626fca61f58f8a531d43befa629cd2969ba37dc9..342e38a7ff8779474481aee6c15e0623f437f9bb 100644 |
| --- a/chrome_frame/turndown_prompt/turndown_prompt_window.h |
| +++ b/chrome_frame/turndown_prompt/turndown_prompt_window.h |
| @@ -28,8 +28,11 @@ class UrlLauncher; |
| namespace WTL { |
| class CHyperLink; |
| +class CBitmapButton; |
| } // namespace WTL |
| +class CFBitmapButton; |
| + |
| // Implements a dialog with text and buttons notifying the user that Chrome |
| // Frame is being turned down, offering them a link to learn more about moving |
| // to a modern browser. |
| @@ -68,8 +71,8 @@ class TurndownPromptWindow |
| BEGIN_DLGRESIZE_MAP(InfobarWindow) |
| DLGRESIZE_CONTROL(IDDISMISS, DLSZ_CENTER_Y | DLSZ_MOVE_X) |
| DLGRESIZE_CONTROL(IDUNINSTALL, DLSZ_CENTER_Y | DLSZ_MOVE_X) |
| - DLGRESIZE_CONTROL(IDC_TD_PROMPT_MESSAGE, DLSZ_SIZE_Y | DLSZ_SIZE_X) |
| DLGRESIZE_CONTROL(IDC_TD_PROMPT_LINK, DLSZ_CENTER_Y | DLSZ_MOVE_X) |
|
grt (UTC plus 2)
2013/07/23 01:38:33
is this the change that fixed the flickering?
robertshield
2013/07/23 03:09:57
No, it was reducing the width so they didn't overl
|
| + DLGRESIZE_CONTROL(IDC_TD_PROMPT_MESSAGE, DLSZ_SIZE_Y | DLSZ_SIZE_X) |
| END_DLGRESIZE_MAP() |
| virtual void OnFinalMessage(HWND); |
| @@ -83,6 +86,9 @@ class TurndownPromptWindow |
| // The TurndownPromptWindow manages its own destruction. |
| virtual ~TurndownPromptWindow(); |
| + // Performs the necessary configuration to initialize a bitmap button. |
| + static void SetupBitmapButton(TurndownPromptWindow* window); |
| + |
| // Event handlers. |
| void OnDestroy(); |
| BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam); |
| @@ -101,6 +107,7 @@ class TurndownPromptWindow |
| InfobarContent::Frame* frame_; // Not owned by this instance |
| scoped_ptr<WTL::CHyperLink> link_; |
| + scoped_ptr<CFBitmapButton> close_button_; |
| scoped_ptr<UrlLauncher> url_launcher_; |
| base::Closure uninstall_closure_; |