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

Side by Side Diff: chrome/browser/banners/app_banner_manager.h

Issue 2915913002: [WebAPKs] Display same text for menu & engagement banner (Closed)
Patch Set: Merge branch 'master' into same_infobar_title Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BANNERS_APP_BANNER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 state_ == State::PENDING_EVENT; 216 state_ == State::PENDING_EVENT;
217 } 217 }
218 bool is_complete() const { return state_ == State::COMPLETE; } 218 bool is_complete() const { return state_ == State::COMPLETE; }
219 bool is_pending_engagement() const { 219 bool is_pending_engagement() const {
220 return state_ == State::PENDING_ENGAGEMENT; 220 return state_ == State::PENDING_ENGAGEMENT;
221 } 221 }
222 bool is_pending_event() const { 222 bool is_pending_event() const {
223 return state_ == State::PENDING_EVENT || page_requested_prompt_; 223 return state_ == State::PENDING_EVENT || page_requested_prompt_;
224 } 224 }
225 225
226 // The title to display in the banner.
227 base::string16 app_title_;
228
229 // The URL for which the banner check is being conducted. 226 // The URL for which the banner check is being conducted.
230 GURL validated_url_; 227 GURL validated_url_;
231 228
232 // The URL of the manifest. 229 // The URL of the manifest.
233 GURL manifest_url_; 230 GURL manifest_url_;
234 231
235 // The manifest object. 232 // The manifest object.
236 content::Manifest manifest_; 233 content::Manifest manifest_;
237 234
238 // The URL of the primary icon. 235 // The URL of the primary icon.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // scoped to the WebContents which they are observing. This allows us to use 302 // scoped to the WebContents which they are observing. This allows us to use
306 // weak pointers for callbacks. 303 // weak pointers for callbacks.
307 base::WeakPtrFactory<AppBannerManager> weak_factory_; 304 base::WeakPtrFactory<AppBannerManager> weak_factory_;
308 305
309 DISALLOW_COPY_AND_ASSIGN(AppBannerManager); 306 DISALLOW_COPY_AND_ASSIGN(AppBannerManager);
310 }; 307 };
311 308
312 } // namespace banners 309 } // namespace banners
313 310
314 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_ 311 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698