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

Unified Diff: views/controls/separator.cc

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 | « views/controls/separator.h ('k') | views/controls/single_split_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/separator.cc
diff --git a/views/controls/separator.cc b/views/controls/separator.cc
deleted file mode 100644
index 7d3d99d4248208c733395ce83e11f380187d1f09..0000000000000000000000000000000000000000
--- a/views/controls/separator.cc
+++ /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.
-
-#include "views/controls/separator.h"
-
-#include "ui/base/accessibility/accessible_view_state.h"
-#include "ui/gfx/canvas.h"
-
-namespace views {
-
-// static
-const char Separator::kViewClassName[] = "views/Separator";
-
-// The separator height in pixels.
-const int kSeparatorHeight = 1;
-
-// Default color of the separator.
-const SkColor kDefaultColor = SkColorSetARGB(255, 233, 233, 233);
-
-Separator::Separator() {
- set_focusable(false);
-}
-
-Separator::~Separator() {
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Separator, View overrides:
-
-gfx::Size Separator::GetPreferredSize() {
- return gfx::Size(width(), kSeparatorHeight);
-}
-
-void Separator::GetAccessibleState(ui::AccessibleViewState* state) {
- state->role = ui::AccessibilityTypes::ROLE_SEPARATOR;
-}
-
-void Separator::Paint(gfx::Canvas* canvas) {
- canvas->FillRect(kDefaultColor, bounds());
-}
-
-std::string Separator::GetClassName() const {
- return kViewClassName;
-}
-
-} // namespace views
« no previous file with comments | « views/controls/separator.h ('k') | views/controls/single_split_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698