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

Side by Side Diff: third_party/WebKit/Source/modules/app_banner/AppBannerPromptResult.cpp

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 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
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 #include "modules/app_banner/AppBannerPromptResult.h" 5 #include "modules/app_banner/AppBannerPromptResult.h"
6 6
7 #include "public/platform/modules/app_banner/WebAppBannerPromptResult.h"
8
9 namespace blink { 7 namespace blink {
10 8
11 AppBannerPromptResult::~AppBannerPromptResult() {} 9 AppBannerPromptResult::~AppBannerPromptResult() {}
12 10
13 String AppBannerPromptResult::outcome() const { 11 String AppBannerPromptResult::outcome() const {
14 switch (m_outcome) { 12 switch (m_outcome) {
15 case WebAppBannerPromptResult::Outcome::Accepted: 13 case Outcome::Accepted:
16 return "accepted"; 14 return "accepted";
17 15
18 case WebAppBannerPromptResult::Outcome::Dismissed: 16 case Outcome::Dismissed:
19 return "dismissed"; 17 return "dismissed";
20 } 18 }
21 19
22 ASSERT_NOT_REACHED(); 20 ASSERT_NOT_REACHED();
23 return ""; 21 return "";
24 } 22 }
25 23
26 AppBannerPromptResult::AppBannerPromptResult( 24 AppBannerPromptResult::AppBannerPromptResult(const String& platform,
27 const AtomicString& platform, 25 Outcome outcome)
28 WebAppBannerPromptResult::Outcome outcome)
29 : m_platform(platform), m_outcome(outcome) {} 26 : m_platform(platform), m_outcome(outcome) {}
30 27
31 } // namespace blink 28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698