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

Side by Side Diff: public/platform/modules/presentation/WebPresentationSessionClient.h

Issue 1020303004: [PresentationAPI] Plumbing |onstatechange| event for the PresentationSession from Blink to platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed the comments, changed the enum to enum class. Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebPresentationSessionClient_h 5 #ifndef WebPresentationSessionClient_h
6 #define WebPresentationSessionClient_h 6 #define WebPresentationSessionClient_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 enum class WebPresentationSessionState {
13 Connected = 0,
14 Disconnected,
15 };
mlamouri (slow - plz ping) 2015/03/23 21:25:48 Lovely <3
whywhat 2015/03/23 21:37:45 Acknowledged.
whywhat 2015/03/23 21:37:46 Acknowledged.
16
12 // The implementation the embedder has to provide for the Presentation API to wo rk. 17 // The implementation the embedder has to provide for the Presentation API to wo rk.
13 class WebPresentationSessionClient { 18 class WebPresentationSessionClient {
14 public: 19 public:
15 virtual ~WebPresentationSessionClient() { } 20 virtual ~WebPresentationSessionClient() { }
16 21
17 virtual WebString getId() = 0; 22 virtual WebString getId() = 0;
18 virtual WebString getUrl() = 0; 23 virtual WebString getUrl() = 0;
19 }; 24 };
20 25
21 } // namespace blink 26 } // namespace blink
22 27
23 #endif // WebPresentationSessionClient_h 28 #endif // WebPresentationSessionClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698