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

Unified Diff: views/examples/examples_main.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/example_combobox_model.cc ('k') | views/examples/examples_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/examples_main.h
diff --git a/views/examples/examples_main.h b/views/examples/examples_main.h
deleted file mode 100644
index a427893715e4cccff43428c629c7c8530eb1b21d..0000000000000000000000000000000000000000
--- a/views/examples/examples_main.h
+++ /dev/null
@@ -1,60 +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_EXAMPLE_MAIN_H_
-#define VIEWS_EXAMPLES_EXAMPLE_MAIN_H_
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "views/widget/widget_delegate.h"
-
-namespace views {
-class Label;
-class TabbedPane;
-class View;
-} // namespace views
-
-namespace examples {
-class ExampleBase;
-
-// ExamplesMain creates all view examples.
-class ExamplesMain : public views::WidgetDelegate {
- public:
- ExamplesMain();
- virtual ~ExamplesMain();
-
- // Creates all the examples and shows the window.
- void Init();
-
- // Prints a message in the status area, at the bottom of the window.
- void SetStatus(const std::string& status);
-
- private:
- // Adds a new example to the tabbed window.
- void AddExample(ExampleBase* example);
-
- // views::WidgetDelegate implementation:
- virtual bool CanResize() const OVERRIDE;
- virtual bool CanMaximize() const OVERRIDE;
- virtual string16 GetWindowTitle() const OVERRIDE;
- virtual views::View* GetContentsView() OVERRIDE;
- virtual void WindowClosing() OVERRIDE;
- virtual views::Widget* GetWidget() OVERRIDE;
- virtual const views::Widget* GetWidget() const OVERRIDE;
-
- views::TabbedPane* tabbed_pane_;
- views::View* contents_;
- views::Label* status_label_;
- std::vector<ExampleBase*> examples_;
-
- DISALLOW_COPY_AND_ASSIGN(ExamplesMain);
-};
-
-} // namespace examples
-
-#endif // VIEWS_EXAMPLES_EXAMPLE_MAIN_H_
« no previous file with comments | « views/examples/example_combobox_model.cc ('k') | views/examples/examples_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698