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

Side by Side Diff: chrome/browser/autofill/autocheckout_page_meta_data.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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/autofill/autocheckout_page_meta_data.h"
6
7 namespace autofill {
8
9 AutocheckoutPageMetaData::AutocheckoutPageMetaData()
10 : current_page_number(-1),
11 total_pages(-1) {}
12
13 AutocheckoutPageMetaData::~AutocheckoutPageMetaData() {}
14
15 bool AutocheckoutPageMetaData::IsStartOfAutofillableFlow() const {
16 return current_page_number == 0 && total_pages > 0;
17 }
18
19 bool AutocheckoutPageMetaData::IsInAutofillableFlow() const {
20 return current_page_number >= 0 && current_page_number < total_pages;
21 }
22
23 bool AutocheckoutPageMetaData::IsEndOfAutofillableFlow() const {
24 return total_pages > 0 && current_page_number == total_pages - 1;
25 }
26
27 } // namesapce autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autocheckout_page_meta_data.h ('k') | chrome/browser/autofill/autocheckout_page_meta_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698