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

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

Issue 2808383004: Refactor and send voice interaction structure (Closed)
Patch Set: fix window build Created 3 years, 7 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void WasOccluded(); 225 void WasOccluded();
226 void WasUnOccluded(); 226 void WasUnOccluded();
227 227
228 // Broadcasts the mode change to all frames. 228 // Broadcasts the mode change to all frames.
229 void SetAccessibilityMode(AccessibilityMode mode); 229 void SetAccessibilityMode(AccessibilityMode mode);
230 230
231 // Adds the given accessibility mode to the current accessibility mode 231 // Adds the given accessibility mode to the current accessibility mode
232 // bitmap. 232 // bitmap.
233 void AddAccessibilityMode(AccessibilityMode mode); 233 void AddAccessibilityMode(AccessibilityMode mode);
234 234
235 // Request a one-time snapshot of the accessibility tree without changing
236 // the accessibility mode.
237 using AXTreeSnapshotCallback =
238 base::Callback<void(
239 const ui::AXTreeUpdate&)>;
240 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
241
242 // Set a temporary zoom level for the frames associated with this WebContents. 235 // Set a temporary zoom level for the frames associated with this WebContents.
243 // If |is_temporary| is true, we are setting a new temporary zoom level, 236 // If |is_temporary| is true, we are setting a new temporary zoom level,
244 // otherwise we are clearing a previously set temporary zoom level. 237 // otherwise we are clearing a previously set temporary zoom level.
245 void SetTemporaryZoomLevel(double level, bool temporary_zoom_enabled); 238 void SetTemporaryZoomLevel(double level, bool temporary_zoom_enabled);
246 239
247 // Sets the zoom level for frames associated with this WebContents. 240 // Sets the zoom level for frames associated with this WebContents.
248 void UpdateZoom(double level); 241 void UpdateZoom(double level);
249 242
250 // Sets the zoom level for frames associated with this WebContents if it 243 // Sets the zoom level for frames associated with this WebContents if it
251 // matches |host| and (if non-empty) |scheme|. Matching is done on the 244 // matches |host| and (if non-empty) |scheme|. Matching is done on the
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 const base::string16& GetTitle() const override; 299 const base::string16& GetTitle() const override;
307 void UpdateTitleForEntry(NavigationEntry* entry, 300 void UpdateTitleForEntry(NavigationEntry* entry,
308 const base::string16& title) override; 301 const base::string16& title) override;
309 SiteInstanceImpl* GetSiteInstance() const override; 302 SiteInstanceImpl* GetSiteInstance() const override;
310 SiteInstanceImpl* GetPendingSiteInstance() const override; 303 SiteInstanceImpl* GetPendingSiteInstance() const override;
311 bool IsLoading() const override; 304 bool IsLoading() const override;
312 bool IsLoadingToDifferentDocument() const override; 305 bool IsLoadingToDifferentDocument() const override;
313 bool IsWaitingForResponse() const override; 306 bool IsWaitingForResponse() const override;
314 const net::LoadStateWithParam& GetLoadState() const override; 307 const net::LoadStateWithParam& GetLoadState() const override;
315 const base::string16& GetLoadStateHost() const override; 308 const base::string16& GetLoadStateHost() const override;
309 void RequestAXTreeSnapshot(const AXTreeSnapshotCallback& callback) override;
316 uint64_t GetUploadSize() const override; 310 uint64_t GetUploadSize() const override;
317 uint64_t GetUploadPosition() const override; 311 uint64_t GetUploadPosition() const override;
318 const std::string& GetEncoding() const override; 312 const std::string& GetEncoding() const override;
319 void IncrementCapturerCount(const gfx::Size& capture_size) override; 313 void IncrementCapturerCount(const gfx::Size& capture_size) override;
320 void DecrementCapturerCount() override; 314 void DecrementCapturerCount() override;
321 int GetCapturerCount() const override; 315 int GetCapturerCount() const override;
322 bool IsAudioMuted() const override; 316 bool IsAudioMuted() const override;
323 void SetAudioMuted(bool mute) override; 317 void SetAudioMuted(bool mute) override;
324 bool IsConnectedToBluetoothDevice() const override; 318 bool IsConnectedToBluetoothDevice() const override;
325 bool IsCrashed() const override; 319 bool IsCrashed() const override;
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 // Adds/removes a callback called on creation of each new WebContents. 1551 // Adds/removes a callback called on creation of each new WebContents.
1558 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1552 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1559 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1553 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1560 1554
1561 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1555 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1562 }; 1556 };
1563 1557
1564 } // namespace content 1558 } // namespace content
1565 1559
1566 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1560 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698