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

Unified Diff: views/controls/focusable_border.h

Issue 8687031: views: Move the remaining files to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | views/controls/focusable_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/focusable_border.h
diff --git a/views/controls/focusable_border.h b/views/controls/focusable_border.h
deleted file mode 100644
index 59f9e4589625e4d057d412eeef4d4570e0ab9249..0000000000000000000000000000000000000000
--- a/views/controls/focusable_border.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_CONTROLS_FOCUSABLE_BORDER_H_
-#define VIEWS_CONTROLS_FOCUSABLE_BORDER_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "views/border.h"
-#include "views/view.h"
-
-namespace gfx {
-class Canvas;
-class Insets;
-}
-
-namespace views {
-
-// A Border class to draw a focused border around a field (e.g textfield).
-class FocusableBorder : public Border {
- public:
- FocusableBorder();
-
- // Sets the insets of the border.
- void SetInsets(int top, int left, int bottom, int right);
-
- // Sets the focus state.
- void set_has_focus(bool has_focus) {
- has_focus_ = has_focus;
- }
-
- // Overridden from Border:
- virtual void Paint(const View& view, gfx::Canvas* canvas) const OVERRIDE;
- virtual void GetInsets(gfx::Insets* insets) const OVERRIDE;
-
- private:
- bool has_focus_;
- gfx::Insets insets_;
-
- DISALLOW_COPY_AND_ASSIGN(FocusableBorder);
-};
-
-} // namespace views
-
-#endif // VIEWS_CONTROLS_FOCUSABLE_BORDER_H_
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | views/controls/focusable_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698