Chromium Code Reviews| Index: mash/browser/debug_view.h |
| diff --git a/mash/browser/debug_view.h b/mash/browser/debug_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..73386341df5bb8b2e7bfea023e3cf804cdc0616e |
| --- /dev/null |
| +++ b/mash/browser/debug_view.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2016 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 MASH_BROWSER_DEBUG_VIEW_H_ |
| +#define MASH_BROWSER_DEBUG_VIEW_H_ |
| + |
| +#include "services/navigation/public/interfaces/view.mojom.h" |
| +#include "ui/views/controls/button/button.h" |
| +#include "ui/views/view.h" |
| + |
| +namespace views { |
| +class Label; |
| +class LabelButton; |
| +class Textfield; |
| +} // namespace views |
| + |
| +namespace mash { |
| +namespace browser { |
| + |
| +class DebugView : public views::View, |
|
sky
2016/06/03 22:24:51
nit: add description.
|
| + public views::ButtonListener { |
| + public: |
| + DebugView(); |
| + ~DebugView(); |
| + |
| + void set_view(navigation::mojom::View* view) { view_ = view; } |
| + |
| + gfx::Size GetPreferredSize() const override; |
| + |
| + private: |
| + void OnPaint(gfx::Canvas* canvas) override; |
| + void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| + |
| + DebugView(const DebugView&) = delete; |
|
sky
2016/06/03 22:24:50
this should be in the first section.
|
| + void operator=(const DebugView&) = delete; |
| + |
| + navigation::mojom::View* view_ = nullptr; |
| + |
| + views::View* interstitial_container_; |
| + views::Label* interstitial_label_; |
| + views::LabelButton* interstitial_show_; |
| + views::LabelButton* interstitial_hide_; |
| + views::Textfield* interstitial_content_; |
| +}; |
| + |
| +} // namespace browser |
| +} // namespace mash |
| + |
| +#endif // MASH_BROWSER_DEBUG_VIEW_H_ |