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

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

Issue 1836943002: DevTools: request app banner from DevTools without #enable-add-to-shelf flag while emulating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 RequestAppBanner(bool* result); 80 Response RequestAppBanner();
81 81
82 private: 82 private:
83 WebContentsImpl* GetWebContents(); 83 WebContentsImpl* GetWebContents();
84 void NotifyScreencastVisibility(bool visible); 84 void NotifyScreencastVisibility(bool visible);
85 void InnerSwapCompositorFrame(); 85 void InnerSwapCompositorFrame();
86 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, 86 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata,
87 const SkBitmap& bitmap, 87 const SkBitmap& bitmap,
88 ReadbackResponse response); 88 ReadbackResponse response);
89 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata, 89 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata,
90 const base::Time& timestamp, 90 const base::Time& timestamp,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 base::WeakPtrFactory<PageHandler> weak_factory_; 126 base::WeakPtrFactory<PageHandler> weak_factory_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(PageHandler); 128 DISALLOW_COPY_AND_ASSIGN(PageHandler);
129 }; 129 };
130 130
131 } // namespace page 131 } // namespace page
132 } // namespace devtools 132 } // namespace devtools
133 } // namespace content 133 } // namespace content
134 134
135 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 135 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698