Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MASH_BROWSER_DEBUG_VIEW_H_ | |
| 6 #define MASH_BROWSER_DEBUG_VIEW_H_ | |
| 7 | |
| 8 #include "services/navigation/public/interfaces/view.mojom.h" | |
| 9 #include "ui/views/controls/button/button.h" | |
| 10 #include "ui/views/view.h" | |
| 11 | |
| 12 namespace views { | |
| 13 class Label; | |
| 14 class LabelButton; | |
| 15 class Textfield; | |
| 16 } // namespace views | |
| 17 | |
| 18 namespace mash { | |
| 19 namespace browser { | |
| 20 | |
| 21 class DebugView : public views::View, | |
|
sky
2016/06/03 22:24:51
nit: add description.
| |
| 22 public views::ButtonListener { | |
| 23 public: | |
| 24 DebugView(); | |
| 25 ~DebugView(); | |
| 26 | |
| 27 void set_view(navigation::mojom::View* view) { view_ = view; } | |
| 28 | |
| 29 gfx::Size GetPreferredSize() const override; | |
| 30 | |
| 31 private: | |
| 32 void OnPaint(gfx::Canvas* canvas) override; | |
| 33 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | |
| 34 | |
| 35 DebugView(const DebugView&) = delete; | |
|
sky
2016/06/03 22:24:50
this should be in the first section.
| |
| 36 void operator=(const DebugView&) = delete; | |
| 37 | |
| 38 navigation::mojom::View* view_ = nullptr; | |
| 39 | |
| 40 views::View* interstitial_container_; | |
| 41 views::Label* interstitial_label_; | |
| 42 views::LabelButton* interstitial_show_; | |
| 43 views::LabelButton* interstitial_hide_; | |
| 44 views::Textfield* interstitial_content_; | |
| 45 }; | |
| 46 | |
| 47 } // namespace browser | |
| 48 } // namespace mash | |
| 49 | |
| 50 #endif // MASH_BROWSER_DEBUG_VIEW_H_ | |
| OLD | NEW |