OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Adds the given accessibility mode to the current accessibility mode | 211 // Adds the given accessibility mode to the current accessibility mode |
212 // bitmap. | 212 // bitmap. |
213 void AddAccessibilityMode(AccessibilityMode mode); | 213 void AddAccessibilityMode(AccessibilityMode mode); |
214 | 214 |
215 // Removes the given accessibility mode from the current accessibility | 215 // Removes the given accessibility mode from the current accessibility |
216 // mode bitmap, managing the bits that are shared with other modes such | 216 // mode bitmap, managing the bits that are shared with other modes such |
217 // that a bit will only be turned off when all modes that depend on it | 217 // that a bit will only be turned off when all modes that depend on it |
218 // have been removed. | 218 // have been removed. |
219 void RemoveAccessibilityMode(AccessibilityMode mode); | 219 void RemoveAccessibilityMode(AccessibilityMode mode); |
220 | 220 |
| 221 // Notification that the WebContents load state changed. |
| 222 void LoadStateChanged(const GURL& url, |
| 223 const net::LoadStateWithParam& load_state, |
| 224 uint64_t upload_position, |
| 225 uint64_t upload_size); |
| 226 |
221 // Request a one-time snapshot of the accessibility tree without changing | 227 // Request a one-time snapshot of the accessibility tree without changing |
222 // the accessibility mode. | 228 // the accessibility mode. |
223 using AXTreeSnapshotCallback = | 229 using AXTreeSnapshotCallback = |
224 base::Callback<void( | 230 base::Callback<void( |
225 const ui::AXTreeUpdate&)>; | 231 const ui::AXTreeUpdate&)>; |
226 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); | 232 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
227 | 233 |
228 // Set a temporary zoom level for the frames associated with this WebContents. | 234 // Set a temporary zoom level for the frames associated with this WebContents. |
229 // If |is_temporary| is true, we are setting a new temporary zoom level, | 235 // If |is_temporary| is true, we are setting a new temporary zoom level, |
230 // otherwise we are clearing a previously set temporary zoom level. | 236 // otherwise we are clearing a previously set temporary zoom level. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 void RouteCloseEvent(RenderViewHost* rvh) override; | 495 void RouteCloseEvent(RenderViewHost* rvh) override; |
490 bool AddMessageToConsole(int32_t level, | 496 bool AddMessageToConsole(int32_t level, |
491 const base::string16& message, | 497 const base::string16& message, |
492 int32_t line_no, | 498 int32_t line_no, |
493 const base::string16& source_id) override; | 499 const base::string16& source_id) override; |
494 RendererPreferences GetRendererPrefs( | 500 RendererPreferences GetRendererPrefs( |
495 BrowserContext* browser_context) const override; | 501 BrowserContext* browser_context) const override; |
496 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, | 502 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, |
497 const blink::WebInputEvent::Type type) override; | 503 const blink::WebInputEvent::Type type) override; |
498 void OnIgnoredUIEvent() override; | 504 void OnIgnoredUIEvent() override; |
499 void LoadStateChanged(const GURL& url, | |
500 const net::LoadStateWithParam& load_state, | |
501 uint64_t upload_position, | |
502 uint64_t upload_size) override; | |
503 void Activate() override; | 505 void Activate() override; |
504 void RunFileChooser(RenderViewHost* render_view_host, | 506 void RunFileChooser(RenderViewHost* render_view_host, |
505 const FileChooserParams& params) override; | 507 const FileChooserParams& params) override; |
506 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 508 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
507 void CreateNewWindow( | 509 void CreateNewWindow( |
508 SiteInstance* source_site_instance, | 510 SiteInstance* source_site_instance, |
509 int32_t route_id, | 511 int32_t route_id, |
510 int32_t main_frame_route_id, | 512 int32_t main_frame_route_id, |
511 int32_t main_frame_widget_route_id, | 513 int32_t main_frame_widget_route_id, |
512 const ViewHostMsg_CreateWindow_Params& params, | 514 const ViewHostMsg_CreateWindow_Params& params, |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 // Adds/removes a callback called on creation of each new WebContents. | 1396 // Adds/removes a callback called on creation of each new WebContents. |
1395 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1397 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1396 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1398 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1397 | 1399 |
1398 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1400 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1399 }; | 1401 }; |
1400 | 1402 |
1401 } // namespace content | 1403 } // namespace content |
1402 | 1404 |
1403 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1405 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |