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

Unified Diff: views/examples/bubble_example.h

Issue 8227003: Views Bubble API adjustments and cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add close_on_esc setting and fade-in functionality. Created 9 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
« no previous file with comments | « views/bubble/bubble_view_unittest.cc ('k') | views/examples/bubble_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/bubble_example.h
diff --git a/views/examples/bubble_example.h b/views/examples/bubble_example.h
index 0201b003c51fe854712b2acd458f9fe74401d68e..65211aecce2a9ee82744b066e5a33dfca23064d3 100644
--- a/views/examples/bubble_example.h
+++ b/views/examples/bubble_example.h
@@ -6,29 +6,15 @@
#define VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
#pragma once
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/base/animation/animation_delegate.h"
-#include "views/controls/button/text_button.h"
#include "views/examples/example_base.h"
-#include "views/layout/box_layout.h"
-#include "views/layout/grid_layout.h"
-#include "views/widget/widget.h"
-
-namespace views {
-class BubbleDelegateView;
-class Button;
-class ColumnSet;
-} // namespace views
+#include "views/controls/button/button.h"
namespace examples {
+
struct BubbleConfig;
// A Bubble example.
class BubbleExample : public ExampleBase,
- public ui::AnimationDelegate,
public views::ButtonListener {
public:
explicit BubbleExample(ExamplesMain* main);
@@ -38,22 +24,13 @@ class BubbleExample : public ExampleBase,
virtual void CreateExampleView(views::View* container) OVERRIDE;
private:
- virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
-
virtual void ButtonPressed(views::Button* sender,
const views::Event& event) OVERRIDE;
- // Add a bubble view in the example
- views::Widget* AddBubbleButton(const BubbleConfig& config);
-
views::Button* round_;
- views::Button* pointy_;
- views::Button* fade_;
- views::BoxLayout* layout_;
-
- views::Widget* round_bubble_;
- views::Widget* pointy_bubble_;
- views::Widget* fade_bubble_;
+ views::Button* arrow_;
+ views::Button* fade_in_;
+ views::Button* fade_out_;
DISALLOW_COPY_AND_ASSIGN(BubbleExample);
};
« no previous file with comments | « views/bubble/bubble_view_unittest.cc ('k') | views/examples/bubble_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698