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

Side by Side Diff: public/web/WebFrameClient.h

Issue 636863002: Make SpeechRecognitionController per frame instead of per page. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class WebServiceWorkerProvider; 76 class WebServiceWorkerProvider;
77 class WebServiceWorkerProviderClient; 77 class WebServiceWorkerProviderClient;
78 class WebSocketHandle; 78 class WebSocketHandle;
79 class WebNode; 79 class WebNode;
80 class WebPlugin; 80 class WebPlugin;
81 class WebPluginPlaceholder; 81 class WebPluginPlaceholder;
82 class WebRTCPeerConnectionHandler; 82 class WebRTCPeerConnectionHandler;
83 class WebScreenOrientationClient; 83 class WebScreenOrientationClient;
84 class WebSharedWorker; 84 class WebSharedWorker;
85 class WebSharedWorkerClient; 85 class WebSharedWorkerClient;
86 class WebSpeechRecognizer;
86 class WebString; 87 class WebString;
87 class WebURL; 88 class WebURL;
88 class WebURLLoader; 89 class WebURLLoader;
89 class WebURLResponse; 90 class WebURLResponse;
90 class WebUserMediaClient; 91 class WebUserMediaClient;
91 class WebWorkerPermissionClientProxy; 92 class WebWorkerPermissionClientProxy;
92 struct WebColorSuggestion; 93 struct WebColorSuggestion;
93 struct WebConsoleMessage; 94 struct WebConsoleMessage;
94 struct WebContextMenuData; 95 struct WebContextMenuData;
95 struct WebPluginParams; 96 struct WebPluginParams;
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 556
556 // Send initial drawing parameters to a child frame that is being rendered o ut of process. 557 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
557 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } 558 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
558 559
559 560
560 // Screen Orientation -------------------------------------------------- 561 // Screen Orientation --------------------------------------------------
561 562
562 // Access the embedder API for (client-based) screen orientation client . 563 // Access the embedder API for (client-based) screen orientation client .
563 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } 564 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; }
564 565
566
565 // Accessibility ------------------------------------------------------- 567 // Accessibility -------------------------------------------------------
566 568
567 // Notifies embedder about an accessibility event. 569 // Notifies embedder about an accessibility event.
568 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } 570 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { }
569 571
570 // Provides accessibility information about a find in page result. 572 // Provides accessibility information about a find in page result.
571 virtual void handleAccessibilityFindInPageResult( 573 virtual void handleAccessibilityFindInPageResult(
572 int identifier, 574 int identifier,
573 int matchIndex, 575 int matchIndex,
574 const WebAXObject& startObject, 576 const WebAXObject& startObject,
575 int startOffset, 577 int startOffset,
576 const WebAXObject& endObject, 578 const WebAXObject& endObject,
577 int endOffset) { } 579 int endOffset) { }
578 580
581
579 // ServiceWorker ------------------------------------------------------- 582 // ServiceWorker -------------------------------------------------------
580 583
581 // Whether the document associated with WebDataSource is controlled by the 584 // Whether the document associated with WebDataSource is controlled by the
582 // ServiceWorker. 585 // ServiceWorker.
583 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; } 586 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; }
584 587
585 // Returns an identifier of the service worker controlling the document 588 // Returns an identifier of the service worker controlling the document
586 // associated with the WebDataSource. 589 // associated with the WebDataSource.
587 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } 590 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; }
588 591
592
593 // Speech --------------------------------------------------------------
594
595 // Access the embedder API for speech recognition services.
596 virtual WebSpeechRecognizer* speechRecognizer() { return 0; }
597
589 protected: 598 protected:
590 virtual ~WebFrameClient() { } 599 virtual ~WebFrameClient() { }
591 }; 600 };
592 601
593 } // namespace blink 602 } // namespace blink
594 603
595 #endif 604 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698