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

Unified Diff: chrome/browser/ui/views/payments/view_stack_state.cc

Issue 2528503002: [WebPayments] Implement state transitions in desktop WebPayments dialog. (Closed)
Patch Set: Factor out ViewStack and animations Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/view_stack_state.cc
diff --git a/chrome/browser/ui/views/payments/view_stack_state.cc b/chrome/browser/ui/views/payments/view_stack_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9359d35db28229daa4a58fbdab0f741356dec39d
--- /dev/null
+++ b/chrome/browser/ui/views/payments/view_stack_state.cc
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/payments/view_stack_state.h"
+
+#include "ui/views/view.h"
+
+ViewStackState::ViewStackState() {}
+
+ViewStackState::~ViewStackState() {}
+
+views::View* ViewStackState::GetView() {
+ if (!view_) {
+ view_.reset(CreateView());
+ view_->set_owned_by_client();
+ }
+
+ return view_.get();
+}

Powered by Google App Engine
This is Rietveld 408576698