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

Side by Side Diff: chrome/browser/devtools/devtools_toggle_action.h

Issue 2570423002: DevTools: Remove ShowSecurityPanel as it is no longer used (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_toggle_action.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 13
14 struct DevToolsToggleAction { 14 struct DevToolsToggleAction {
15 public: 15 public:
16 enum Type { 16 enum Type {
17 kShow, 17 kShow,
18 kShowConsole, 18 kShowConsole,
19 kShowSecurityPanel,
20 kInspect, 19 kInspect,
21 kToggle, 20 kToggle,
22 kReveal, 21 kReveal,
23 kNoOp 22 kNoOp
24 }; 23 };
25 24
26 struct RevealParams { 25 struct RevealParams {
27 RevealParams(const base::string16& url, 26 RevealParams(const base::string16& url,
28 size_t line_number, 27 size_t line_number,
29 size_t column_number); 28 size_t column_number);
30 ~RevealParams(); 29 ~RevealParams();
31 30
32 base::string16 url; 31 base::string16 url;
33 size_t line_number; 32 size_t line_number;
34 size_t column_number; 33 size_t column_number;
35 }; 34 };
36 35
37 void operator=(const DevToolsToggleAction& rhs); 36 void operator=(const DevToolsToggleAction& rhs);
38 DevToolsToggleAction(const DevToolsToggleAction& rhs); 37 DevToolsToggleAction(const DevToolsToggleAction& rhs);
39 ~DevToolsToggleAction(); 38 ~DevToolsToggleAction();
40 39
41 static DevToolsToggleAction Show(); 40 static DevToolsToggleAction Show();
42 static DevToolsToggleAction ShowConsole(); 41 static DevToolsToggleAction ShowConsole();
43 static DevToolsToggleAction ShowSecurityPanel();
44 static DevToolsToggleAction Inspect(); 42 static DevToolsToggleAction Inspect();
45 static DevToolsToggleAction Toggle(); 43 static DevToolsToggleAction Toggle();
46 static DevToolsToggleAction Reveal(const base::string16& url, 44 static DevToolsToggleAction Reveal(const base::string16& url,
47 size_t line_number, 45 size_t line_number,
48 size_t column_number); 46 size_t column_number);
49 static DevToolsToggleAction NoOp(); 47 static DevToolsToggleAction NoOp();
50 48
51 Type type() const { return type_; } 49 Type type() const { return type_; }
52 const RevealParams* params() const { return params_.get(); } 50 const RevealParams* params() const { return params_.get(); }
53 51
54 private: 52 private:
55 explicit DevToolsToggleAction(Type type); 53 explicit DevToolsToggleAction(Type type);
56 explicit DevToolsToggleAction(RevealParams* reveal_params); 54 explicit DevToolsToggleAction(RevealParams* reveal_params);
57 55
58 // The type of action. 56 // The type of action.
59 Type type_; 57 Type type_;
60 58
61 // Additional parameters for the Reveal action; NULL if of any other type. 59 // Additional parameters for the Reveal action; NULL if of any other type.
62 std::unique_ptr<RevealParams> params_; 60 std::unique_ptr<RevealParams> params_;
63 }; 61 };
64 62
65 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_ 63 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TOGGLE_ACTION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_toggle_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698