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

Side by Side Diff: content/browser/devtools/protocol/page_handler.h

Issue 1569893003: Add "Request app banner" context menu in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on https://codereview.chromium.org/1571633002/ Created 4 years, 11 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const int* every_nth_frame); 70 const int* every_nth_frame);
71 Response StopScreencast(); 71 Response StopScreencast();
72 Response ScreencastFrameAck(int session_id); 72 Response ScreencastFrameAck(int session_id);
73 73
74 Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text); 74 Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text);
75 75
76 Response QueryUsageAndQuota(DevToolsCommandId command_id, 76 Response QueryUsageAndQuota(DevToolsCommandId command_id,
77 const std::string& security_origin); 77 const std::string& security_origin);
78 78
79 Response SetColorPickerEnabled(bool enabled); 79 Response SetColorPickerEnabled(bool enabled);
80 Response CanOpenAppBanner(bool* result);
81 Response OpenAppBanner(bool* result);
80 82
81 private: 83 private:
82 WebContentsImpl* GetWebContents(); 84 WebContentsImpl* GetWebContents();
83 void NotifyScreencastVisibility(bool visible); 85 void NotifyScreencastVisibility(bool visible);
84 void InnerSwapCompositorFrame(); 86 void InnerSwapCompositorFrame();
85 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, 87 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata,
86 const SkBitmap& bitmap, 88 const SkBitmap& bitmap,
87 ReadbackResponse response); 89 ReadbackResponse response);
88 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata, 90 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata,
89 const base::Time& timestamp, 91 const base::Time& timestamp,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::WeakPtrFactory<PageHandler> weak_factory_; 127 base::WeakPtrFactory<PageHandler> weak_factory_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(PageHandler); 129 DISALLOW_COPY_AND_ASSIGN(PageHandler);
128 }; 130 };
129 131
130 } // namespace page 132 } // namespace page
131 } // namespace devtools 133 } // namespace devtools
132 } // namespace content 134 } // namespace content
133 135
134 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 136 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698