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

Unified Diff: chrome/browser/ui/views/autofill/decorated_textfield.h

Issue 2406363003: Update appearance of invalid textfields in Harmony. (Closed)
Patch Set: combine install with setcolorid Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/decorated_textfield.h
diff --git a/chrome/browser/ui/views/autofill/decorated_textfield.h b/chrome/browser/ui/views/autofill/decorated_textfield.h
deleted file mode 100644
index e90363010be0bb780d561d7d19fd411cd8fc68f7..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/autofill/decorated_textfield.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
-#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/strings/string16.h"
-#include "ui/views/controls/textfield/textfield.h"
-
-namespace views {
-class TextfieldController;
-}
-
-namespace autofill {
-
-// A class which holds a textfield and draws extra stuff on top, like
-// invalid content indications.
-// TODO(estade): the usefulness of this class is dubious now that it's been
-// stripped of most of its functionality.
-class DecoratedTextfield : public views::Textfield {
- public:
- static const char kViewClassName[];
-
- DecoratedTextfield(const base::string16& default_value,
- const base::string16& placeholder,
- views::TextfieldController* controller);
- ~DecoratedTextfield() override;
-
- // Sets whether to indicate the textfield has invalid content.
- void SetInvalid(bool invalid);
- bool invalid() const { return invalid_; }
-
- // views::View implementation.
- const char* GetClassName() const override;
-
- private:
- // Updates the border after its color or insets may have changed.
- void UpdateBorder();
-
- // Whether the text contents are "invalid" (i.e. should special markers be
- // shown to indicate invalidness).
- bool invalid_;
-
- DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield);
-};
-
-} // namespace autofill
-
-#endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc ('k') | chrome/browser/ui/views/autofill/decorated_textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698