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

Unified Diff: views/examples/text_example.h

Issue 8555013: views: Move examples/ directory to ui/views/. (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/examples/table_example.cc ('k') | views/examples/text_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/text_example.h
diff --git a/views/examples/text_example.h b/views/examples/text_example.h
deleted file mode 100644
index 59569f852098c546dc65a79587c236c046ca574a..0000000000000000000000000000000000000000
--- a/views/examples/text_example.h
+++ /dev/null
@@ -1,79 +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_EXAMPLES_TEXT_EXAMPLE_H_
-#define VIEWS_EXAMPLES_TEXT_EXAMPLE_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "views/controls/button/button.h"
-#include "views/controls/combobox/combobox.h"
-#include "views/examples/example_base.h"
-
-namespace views {
-class Checkbox;
-class GridLayout;
-}
-
-namespace examples {
-
-class TextExample : public ExampleBase,
- public views::ButtonListener,
- public views::Combobox::Listener {
- public:
- explicit TextExample(ExamplesMain* main);
- virtual ~TextExample();
-
- // Overridden from ExampleBase:
- virtual void CreateExampleView(views::View* container) OVERRIDE;
-
- private:
- // Create and add a combo box to the layout.
- views::Combobox* AddCombobox(views::GridLayout* layout,
- const char* name,
- const char** strings,
- int count);
-
- // Overridden from views::ButtonListener:
- virtual void ButtonPressed(views::Button* button,
- const views::Event& event) OVERRIDE;
-
- // Overridden from views::Combobox::Listener:
- virtual void ItemChanged(views::Combobox* combo_box,
- int prev_index,
- int new_index) OVERRIDE;
-
-
- class TextExampleView;
- // The content of the scroll view.
- TextExampleView* text_view_;
-
- // Combo box for horizontal text alignment.
- views::Combobox* h_align_cb_;
-
- // Combo box for vertical text alignment.
- views::Combobox* v_align_cb_;
-
- // Combo box for text eliding style.
- views::Combobox* eliding_cb_;
-
- // Combo box for ampersand prefix show / hide behavior.
- views::Combobox* prefix_cb_;
-
- // Combo box to choose one of the sample texts.
- views::Combobox* text_cb_;
-
- // Check box to enable/disable multiline text drawing.
- views::Checkbox* multiline_checkbox_;
-
- // Check box to enable/disable character break behavior.
- views::Checkbox* break_checkbox_;
-
- DISALLOW_COPY_AND_ASSIGN(TextExample);
-};
-
-} // namespace examples
-
-#endif // VIEWS_EXAMPLES_TEXT_EXAMPLE_H_
« no previous file with comments | « views/examples/table_example.cc ('k') | views/examples/text_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698