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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2808383004: Refactor and send voice interaction structure (Closed)
Patch Set: fix WmShell position Created 3 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 (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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 // Broadcasts the mode change to all frames. 231 // Broadcasts the mode change to all frames.
232 void SetAccessibilityMode(AccessibilityMode mode); 232 void SetAccessibilityMode(AccessibilityMode mode);
233 233
234 // Adds the given accessibility mode to the current accessibility mode 234 // Adds the given accessibility mode to the current accessibility mode
235 // bitmap. 235 // bitmap.
236 void AddAccessibilityMode(AccessibilityMode mode); 236 void AddAccessibilityMode(AccessibilityMode mode);
237 237
238 // Request a one-time snapshot of the accessibility tree without changing 238 // Request a one-time snapshot of the accessibility tree without changing
239 // the accessibility mode. 239 // the accessibility mode.
240 using AXTreeSnapshotCallback = 240 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) override;
Avi (use Gerrit) 2017/04/14 14:45:05 You'll need to move this to the block of overridin
Muyuan 2017/04/18 18:24:51 Done.
241 base::Callback<void(
242 const ui::AXTreeUpdate&)>;
243 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
244 241
245 // Set a temporary zoom level for the frames associated with this WebContents. 242 // Set a temporary zoom level for the frames associated with this WebContents.
246 // If |is_temporary| is true, we are setting a new temporary zoom level, 243 // If |is_temporary| is true, we are setting a new temporary zoom level,
247 // otherwise we are clearing a previously set temporary zoom level. 244 // otherwise we are clearing a previously set temporary zoom level.
248 void SetTemporaryZoomLevel(double level, bool temporary_zoom_enabled); 245 void SetTemporaryZoomLevel(double level, bool temporary_zoom_enabled);
249 246
250 // Sets the zoom level for frames associated with this WebContents. 247 // Sets the zoom level for frames associated with this WebContents.
251 void UpdateZoom(double level); 248 void UpdateZoom(double level);
252 249
253 // Sets the zoom level for frames associated with this WebContents if it 250 // Sets the zoom level for frames associated with this WebContents if it
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 // Adds/removes a callback called on creation of each new WebContents. 1589 // Adds/removes a callback called on creation of each new WebContents.
1593 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1590 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1594 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1591 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1595 1592
1596 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1593 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1597 }; 1594 };
1598 1595
1599 } // namespace content 1596 } // namespace content
1600 1597
1601 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1598 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698