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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/payments/view_stack_state.h"
6
7 #include "ui/views/view.h"
8
9 ViewStackState::ViewStackState() {}
10
11 ViewStackState::~ViewStackState() {}
12
13 views::View* ViewStackState::GetView() {
14 if (!view_) {
15 view_.reset(CreateView());
16 view_->set_owned_by_client();
17 }
18
19 return view_.get();
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698