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

Side by Side Diff: chrome/browser/ui/views/about_chrome_view.h

Issue 8394042: Pass through installer errors from Google Update to the About box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/browser/google/google_update.cc ('k') | chrome/browser/ui/views/about_chrome_view.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 CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual bool Accept() OVERRIDE; 70 virtual bool Accept() OVERRIDE;
71 virtual views::View* GetContentsView() OVERRIDE; 71 virtual views::View* GetContentsView() OVERRIDE;
72 72
73 // Overridden from views::LinkListener: 73 // Overridden from views::LinkListener:
74 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 74 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
75 75
76 #if defined(OS_WIN) && !defined(USE_AURA) 76 #if defined(OS_WIN) && !defined(USE_AURA)
77 // Overridden from GoogleUpdateStatusListener: 77 // Overridden from GoogleUpdateStatusListener:
78 virtual void OnReportResults(GoogleUpdateUpgradeResult result, 78 virtual void OnReportResults(GoogleUpdateUpgradeResult result,
79 GoogleUpdateErrorCode error_code, 79 GoogleUpdateErrorCode error_code,
80 const std::wstring& version) OVERRIDE; 80 const string16& error_message,
81 const string16& version) OVERRIDE;
81 #endif 82 #endif
82 83
83 private: 84 private:
84 #if defined(OS_WIN) && !defined(USE_AURA) 85 #if defined(OS_WIN) && !defined(USE_AURA)
85 // Update the UI to show the status of the upgrade. 86 // Update the UI to show the status of the upgrade.
86 void UpdateStatus(GoogleUpdateUpgradeResult result, 87 void UpdateStatus(GoogleUpdateUpgradeResult result,
87 GoogleUpdateErrorCode error_code); 88 GoogleUpdateErrorCode error_code,
89 const string16& error_message);
90
91 // Update the size of the window containing this view to account for more
92 // text being displayed (error messages, etc). Returns how many pixels the
93 // window was increased by (if any).
94 int EnlargeWindowSizeIfNeeded();
88 #endif 95 #endif
89 96
90 Profile* profile_; 97 Profile* profile_;
91 98
92 // UI elements on the dialog. 99 // UI elements on the dialog.
93 views::ImageView* about_dlg_background_logo_; 100 views::ImageView* about_dlg_background_logo_;
94 views::Label* about_title_label_; 101 views::Label* about_title_label_;
95 views::Textfield* version_label_; 102 views::Textfield* version_label_;
96 views::Label* copyright_label_; 103 views::Label* copyright_label_;
97 views::Label* main_text_label_; 104 views::Label* main_text_label_;
98 int main_text_label_height_; 105 int main_text_label_height_;
99 views::Link* chromium_url_; 106 views::Link* chromium_url_;
100 gfx::Rect chromium_url_rect_; 107 gfx::Rect chromium_url_rect_;
101 views::Link* open_source_url_; 108 views::Link* open_source_url_;
102 gfx::Rect open_source_url_rect_; 109 gfx::Rect open_source_url_rect_;
103 views::Link* terms_of_service_url_; 110 views::Link* terms_of_service_url_;
104 gfx::Rect terms_of_service_url_rect_; 111 gfx::Rect terms_of_service_url_rect_;
112 views::Label* error_label_;
105 // UI elements we add to the parent view. 113 // UI elements we add to the parent view.
106 scoped_ptr<views::Throbber> throbber_; 114 scoped_ptr<views::Throbber> throbber_;
107 views::ImageView success_indicator_; 115 views::ImageView success_indicator_;
108 views::ImageView update_available_indicator_; 116 views::ImageView update_available_indicator_;
109 views::ImageView timeout_indicator_; 117 views::ImageView timeout_indicator_;
110 views::Label update_label_; 118 views::Label update_label_;
111 119
112 // The dialog dimensions. 120 // The dialog dimensions.
113 gfx::Size dialog_dimensions_; 121 gfx::Size dialog_dimensions_;
114 122
(...skipping 11 matching lines...) Expand all
126 // Determines the order of the two links we draw in the main label. 134 // Determines the order of the two links we draw in the main label.
127 bool chromium_url_appears_first_; 135 bool chromium_url_appears_first_;
128 136
129 #if defined(OS_WIN) && !defined(USE_AURA) 137 #if defined(OS_WIN) && !defined(USE_AURA)
130 // The class that communicates with Google Update to find out if an update is 138 // The class that communicates with Google Update to find out if an update is
131 // available and asks it to start an upgrade. 139 // available and asks it to start an upgrade.
132 scoped_refptr<GoogleUpdate> google_updater_; 140 scoped_refptr<GoogleUpdate> google_updater_;
133 #endif 141 #endif
134 142
135 // The version Google Update reports is available to us. 143 // The version Google Update reports is available to us.
136 std::wstring new_version_available_; 144 string16 new_version_available_;
137 145
138 // Whether text direction is left-to-right or right-to-left. 146 // Whether text direction is left-to-right or right-to-left.
139 bool text_direction_is_rtl_; 147 bool text_direction_is_rtl_;
140 148
141 DISALLOW_COPY_AND_ASSIGN(AboutChromeView); 149 DISALLOW_COPY_AND_ASSIGN(AboutChromeView);
142 }; 150 };
143 151
144 #endif // CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_ 152 #endif // CHROME_BROWSER_UI_VIEWS_ABOUT_CHROME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/google/google_update.cc ('k') | chrome/browser/ui/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698