| OLD | NEW |
| 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" | 7 #include "public/platform/modules/app_banner/WebAppBannerPromptResult.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 AppBannerPromptResult::~AppBannerPromptResult() {} | 11 AppBannerPromptResult::~AppBannerPromptResult() {} |
| 12 | 12 |
| 13 String AppBannerPromptResult::outcome() const { | 13 String AppBannerPromptResult::outcome() const { |
| 14 switch (m_outcome) { | 14 switch (m_outcome) { |
| 15 case WebAppBannerPromptResult::Outcome::Accepted: | 15 case WebAppBannerPromptResult::Outcome::Accepted: |
| 16 return "accepted"; | 16 return "accepted"; |
| 17 | 17 |
| 18 case WebAppBannerPromptResult::Outcome::Dismissed: | 18 case WebAppBannerPromptResult::Outcome::Dismissed: |
| 19 return "dismissed"; | 19 return "dismissed"; |
| 20 } | 20 } |
| 21 | 21 |
| 22 ASSERT_NOT_REACHED(); | 22 ASSERT_NOT_REACHED(); |
| 23 return ""; | 23 return ""; |
| 24 } | 24 } |
| 25 | 25 |
| 26 AppBannerPromptResult::AppBannerPromptResult( | 26 AppBannerPromptResult::AppBannerPromptResult( |
| 27 const AtomicString& platform, | 27 const String& platform, |
| 28 WebAppBannerPromptResult::Outcome outcome) | 28 WebAppBannerPromptResult::Outcome outcome) |
| 29 : m_platform(platform), m_outcome(outcome) {} | 29 : m_platform(platform), m_outcome(outcome) {} |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| OLD | NEW |