OLD | NEW |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Response HandleJavaScriptDialog(bool accept, | 86 Response HandleJavaScriptDialog(bool accept, |
87 Maybe<std::string> prompt_text) override; | 87 Maybe<std::string> prompt_text) override; |
88 | 88 |
89 Response SetColorPickerEnabled(bool enabled) override; | 89 Response SetColorPickerEnabled(bool enabled) override; |
90 Response RequestAppBanner() override; | 90 Response RequestAppBanner() override; |
91 | 91 |
92 Response SetControlNavigations(bool enabled) override; | 92 Response SetControlNavigations(bool enabled) override; |
93 Response ProcessNavigation(const std::string& response, | 93 Response ProcessNavigation(const std::string& response, |
94 int navigation_id) override; | 94 int navigation_id) override; |
95 | 95 |
| 96 Response MaximizeWindow() override; |
| 97 Response MinimizeWindow() override; |
| 98 Response SetWindowFullscreen(Maybe<bool> fullscreen) override; |
| 99 Response SetWindowBounds(Maybe<int> left, |
| 100 Maybe<int> top, |
| 101 Maybe<int> width, |
| 102 Maybe<int> height) override; |
| 103 Response GetWindowBounds(int* left, |
| 104 int* top, |
| 105 int* width, |
| 106 int* height) override; |
| 107 |
96 std::unique_ptr<PageNavigationThrottle> CreateThrottleForNavigation( | 108 std::unique_ptr<PageNavigationThrottle> CreateThrottleForNavigation( |
97 NavigationHandle* navigation_handle); | 109 NavigationHandle* navigation_handle); |
98 | 110 |
99 void OnPageNavigationThrottleDisposed(int navigation_id); | 111 void OnPageNavigationThrottleDisposed(int navigation_id); |
100 void NavigationRequested(const PageNavigationThrottle* throttle); | 112 void NavigationRequested(const PageNavigationThrottle* throttle); |
101 | 113 |
102 private: | 114 private: |
103 enum EncodingFormat { PNG, JPEG }; | 115 enum EncodingFormat { PNG, JPEG }; |
104 | 116 |
105 WebContentsImpl* GetWebContents(); | 117 WebContentsImpl* GetWebContents(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 NotificationRegistrar registrar_; | 163 NotificationRegistrar registrar_; |
152 base::WeakPtrFactory<PageHandler> weak_factory_; | 164 base::WeakPtrFactory<PageHandler> weak_factory_; |
153 | 165 |
154 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 166 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
155 }; | 167 }; |
156 | 168 |
157 } // namespace protocol | 169 } // namespace protocol |
158 } // namespace content | 170 } // namespace content |
159 | 171 |
160 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 172 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |