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

Side by Side Diff: mojo/examples/window_manager/debug_panel.h

Issue 623573002: Mojo: Convert the remaining OVERRIDEs to override in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 5 #ifndef MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
6 #define MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 6 #define MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h"
10 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h" 11 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h"
11 #include "ui/views/controls/button/button.h" 12 #include "ui/views/controls/button/button.h"
12 #include "ui/views/layout/layout_manager.h" 13 #include "ui/views/layout/layout_manager.h"
13 #include "ui/views/widget/widget_delegate.h" 14 #include "ui/views/widget/widget_delegate.h"
14 15
15 namespace views { 16 namespace views {
16 class Label; 17 class Label;
17 class RadioButton; 18 class RadioButton;
18 } 19 }
19 20
(...skipping 21 matching lines...) Expand all
41 virtual ~Delegate(){} 42 virtual ~Delegate(){}
42 }; 43 };
43 44
44 DebugPanel(Delegate* delegate, View* view); 45 DebugPanel(Delegate* delegate, View* view);
45 virtual ~DebugPanel(); 46 virtual ~DebugPanel();
46 47
47 Target navigation_target() const; 48 Target navigation_target() const;
48 49
49 private: 50 private:
50 // LayoutManager overrides: 51 // LayoutManager overrides:
51 virtual gfx::Size GetPreferredSize(const views::View* view) const OVERRIDE; 52 virtual gfx::Size GetPreferredSize(const views::View* view) const override;
52 virtual void Layout(views::View* host) OVERRIDE; 53 virtual void Layout(views::View* host) override;
53 virtual void ButtonPressed(views::Button* sender, 54 virtual void ButtonPressed(views::Button* sender,
54 const ui::Event& event) OVERRIDE; 55 const ui::Event& event) override;
55 56
56 void Navigate(const std::string& url); 57 void Navigate(const std::string& url);
57 58
58 Delegate* delegate_; 59 Delegate* delegate_;
59 View* view_; 60 View* view_;
60 61
61 views::Label* navigation_target_label_; 62 views::Label* navigation_target_label_;
62 views::RadioButton* navigation_target_new_; 63 views::RadioButton* navigation_target_new_;
63 views::RadioButton* navigation_target_source_; 64 views::RadioButton* navigation_target_source_;
64 views::RadioButton* navigation_target_default_; 65 views::RadioButton* navigation_target_default_;
65 66
66 views::Button* colored_square_; 67 views::Button* colored_square_;
67 views::Button* close_last_; 68 views::Button* close_last_;
68 views::Button* cross_app_; 69 views::Button* cross_app_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(DebugPanel); 71 DISALLOW_COPY_AND_ASSIGN(DebugPanel);
71 }; 72 };
72 73
73 } // examples 74 } // examples
74 } // mojo 75 } // mojo
75 76
76 #endif // MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 77 #endif // MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
OLDNEW
« no previous file with comments | « mojo/examples/surfaces_app/surfaces_app.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698