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

Unified Diff: ui/app_list/app_list_background.h

Issue 10905311: Consolidate bubble border code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove USE_AURA ifdef for kBigShadowImages and kSmalleShadowImages Created 8 years, 3 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
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_background.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_background.h
diff --git a/ui/app_list/app_list_background.h b/ui/app_list/app_list_background.h
new file mode 100644
index 0000000000000000000000000000000000000000..66be8785d967d3c6d62848c4a619ac2236644378
--- /dev/null
+++ b/ui/app_list/app_list_background.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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 UI_APP_LIST_APP_LIST_BACKGROUND_H_
+#define UI_APP_LIST_APP_LIST_BACKGROUND_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/views/background.h"
+
+namespace views {
+class View;
+}
+
+namespace app_list {
+
+// A class to paint bubble background.
+class AppListBackground : public views::Background {
+ public:
+ AppListBackground(int corner_radius,
+ views::View* search_box_view);
+ virtual ~AppListBackground();
+
+ private:
+ // views::Background overrides:
+ virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE;
+
+ const int corner_radius_;
+ const views::View* search_box_view_; // Owned by views hierarchy.
+
+ DISALLOW_COPY_AND_ASSIGN(AppListBackground);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_APP_LIST_BACKGROUND_H_
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698