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

Side by Side Diff: Source/web/NotificationPresenterImpl.h

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 21 matching lines...) Expand all
32 #define NotificationPresenterImpl_h 32 #define NotificationPresenterImpl_h
33 33
34 #include "modules/notifications/NotificationClient.h" 34 #include "modules/notifications/NotificationClient.h"
35 35
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WebNotificationPresenter; 40 class WebNotificationPresenter;
41 41
42 class NotificationPresenterImpl FINAL : public WebCore::NotificationClient { 42 class NotificationPresenterImpl FINAL : public blink::NotificationClient {
43 public: 43 public:
44 NotificationPresenterImpl() : m_presenter(0) { } 44 NotificationPresenterImpl() : m_presenter(0) { }
45 45
46 void initialize(WebNotificationPresenter* presenter); 46 void initialize(WebNotificationPresenter* presenter);
47 bool isInitialized(); 47 bool isInitialized();
48 48
49 // WebCore::NotificationPresenter implementation. 49 // blink::NotificationPresenter implementation.
50 virtual bool show(WebCore::Notification*) OVERRIDE; 50 virtual bool show(blink::Notification*) OVERRIDE;
51 virtual void close(WebCore::Notification*) OVERRIDE; 51 virtual void close(blink::Notification*) OVERRIDE;
52 virtual void notificationObjectDestroyed(WebCore::Notification*) OVERRIDE; 52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE;
53 virtual WebCore::NotificationClient::Permission checkPermission(WebCore::Exe cutionContext*) OVERRIDE; 53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi onContext*) OVERRIDE;
54 virtual void requestPermission(WebCore::ExecutionContext*, WTF::PassOwnPtr<W ebCore::NotificationPermissionCallback>) OVERRIDE; 54 virtual void requestPermission(blink::ExecutionContext*, WTF::PassOwnPtr<bli nk::NotificationPermissionCallback>) OVERRIDE;
55 55
56 private: 56 private:
57 // WebNotificationPresenter that this object delegates to. 57 // WebNotificationPresenter that this object delegates to.
58 WebNotificationPresenter* m_presenter; 58 WebNotificationPresenter* m_presenter;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // NotificationPresenterImpl_h 63 #endif // NotificationPresenterImpl_h
OLDNEW
« no previous file with comments | « Source/web/NotificationPermissionClientImpl.cpp ('k') | Source/web/NotificationPresenterImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698