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

Unified Diff: mojo/examples/window_manager/debug_panel.h

Issue 684543003: Move //mojo/examples to //examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 | « mojo/examples/window_manager/DEPS ('k') | mojo/examples/window_manager/debug_panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/window_manager/debug_panel.h
diff --git a/mojo/examples/window_manager/debug_panel.h b/mojo/examples/window_manager/debug_panel.h
deleted file mode 100644
index eec306759ad579a0db71633ca7b786c0bfb112d1..0000000000000000000000000000000000000000
--- a/mojo/examples/window_manager/debug_panel.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2014 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 MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
-#define MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "mojo/services/public/interfaces/navigation/navigation.mojom.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/layout/layout_manager.h"
-#include "ui/views/widget/widget_delegate.h"
-
-namespace views {
-class Label;
-class RadioButton;
-}
-
-namespace mojo {
-
-class Shell;
-class View;
-
-namespace examples {
-
-// A panel of controls intended to demonstrate the functionality of the window
-// manager.
-class DebugPanel : public views::LayoutManager, public views::ButtonListener {
- public:
- class Delegate {
- public:
- virtual void CloseTopWindow() = 0;
- virtual void RequestNavigate(uint32 source_view_id,
- Target target,
- URLRequestPtr url_request) = 0;
-
- protected:
- virtual ~Delegate(){}
- };
-
- DebugPanel(Delegate* delegate, Shell* shell, View* view);
- virtual ~DebugPanel();
-
- Target navigation_target() const;
-
- private:
- // LayoutManager overrides:
- virtual gfx::Size GetPreferredSize(const views::View* view) const override;
- virtual void Layout(views::View* host) override;
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) override;
-
- void Navigate(const std::string& url);
-
- Delegate* delegate_;
- Shell* shell_;
- View* view_;
-
- views::Label* navigation_target_label_;
- views::RadioButton* navigation_target_new_;
- views::RadioButton* navigation_target_source_;
- views::RadioButton* navigation_target_default_;
-
- views::Button* colored_square_;
- views::Button* close_last_;
- views::Button* cross_app_;
-
- DISALLOW_COPY_AND_ASSIGN(DebugPanel);
-};
-
-} // examples
-} // mojo
-
-#endif // MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
« no previous file with comments | « mojo/examples/window_manager/DEPS ('k') | mojo/examples/window_manager/debug_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698