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

Unified Diff: chrome/browser/chromeos/drop_shadow_label.h

Issue 8890049: [Aura] Implement views-based applist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/drop_shadow_label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drop_shadow_label.h
diff --git a/chrome/browser/chromeos/drop_shadow_label.h b/chrome/browser/chromeos/drop_shadow_label.h
deleted file mode 100644
index e64f12dc6964666351bde0028e3eef1aaf655a16..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/drop_shadow_label.h
+++ /dev/null
@@ -1,54 +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 CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_
-#define CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_
-#pragma once
-
-#include "ui/gfx/font.h"
-#include "ui/views/controls/label.h"
-
-namespace chromeos {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DropShadowLabel class
-//
-// A drop shadow label is a view subclass that can display a string
-// with a drop shadow.
-//
-/////////////////////////////////////////////////////////////////////////////
-class DropShadowLabel : public views::Label {
- public:
- DropShadowLabel();
-
- // Sets the size of the drop shadow drawn under the text.
- // Defaults to two. Note that this is a really simplistic drop
- // shadow -- it gets more expensive to draw the larger it gets,
- // since it simply draws more copies of the string. For instance,
- // for a value of two, the string is draw seven times. In general,
- // it is drawn three extra times for each increment of |size|.
- void SetDropShadowSize(int size);
-
- // Return the size of the drop shadow in pixels.
- int drop_shadow_size() const { return drop_shadow_size_; }
-
- // Overridden to paint the text differently from the base class.
- virtual void PaintText(gfx::Canvas* canvas,
- const string16& text,
- const gfx::Rect& text_bounds,
- int flags) OVERRIDE;
-
- protected:
- virtual gfx::Size GetTextSize() const OVERRIDE;
-
- private:
- int drop_shadow_size_;
-
- DISALLOW_COPY_AND_ASSIGN(DropShadowLabel);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/drop_shadow_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698