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

Side by Side Diff: mash/browser/debug_view.h

Issue 2039613002: Add a debug view to the browser that allows various navigation features to be used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698