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

Side by Side Diff: Source/modules/notifications/Notification.h

Issue 1093243003: [WIP] add "auto" attr in notifications Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 String title() const { return m_title; } 84 String title() const { return m_title; }
85 String dir() const { return m_dir; } 85 String dir() const { return m_dir; }
86 String lang() const { return m_lang; } 86 String lang() const { return m_lang; }
87 String body() const { return m_body; } 87 String body() const { return m_body; }
88 String tag() const { return m_tag; } 88 String tag() const { return m_tag; }
89 String icon() const { return m_iconUrl; } 89 String icon() const { return m_iconUrl; }
90 bool silent() const { return m_silent; } 90 bool silent() const { return m_silent; }
91 ScriptValue data(ScriptState*) const; 91 ScriptValue data(ScriptState*) const;
92 92
93 TextDirection direction() const;
94 KURL iconURL() const { return m_iconUrl; } 93 KURL iconURL() const { return m_iconUrl; }
95 SerializedScriptValue* serializedData() const { return m_serializedData.get( ); } 94 SerializedScriptValue* serializedData() const { return m_serializedData.get( ); }
96 95
96 static WebNotificationData directionStringToEnum(String direction);
97 static String permissionString(WebNotificationPermission); 97 static String permissionString(WebNotificationPermission);
98 static String permission(ExecutionContext*); 98 static String permission(ExecutionContext*);
99 static WebNotificationPermission checkPermission(ExecutionContext*); 99 static WebNotificationPermission checkPermission(ExecutionContext*);
100 static void requestPermission(ExecutionContext*, NotificationPermissionCallb ack* = nullptr); 100 static void requestPermission(ExecutionContext*, NotificationPermissionCallb ack* = nullptr);
101 101
102 // EventTarget interface. 102 // EventTarget interface.
103 virtual ExecutionContext* executionContext() const override final { return A ctiveDOMObject::executionContext(); } 103 virtual ExecutionContext* executionContext() const override final { return A ctiveDOMObject::executionContext(); }
104 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override final; 104 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override final;
105 virtual const AtomicString& interfaceName() const override; 105 virtual const AtomicString& interfaceName() const override;
106 106
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void setState(NotificationState state) { m_state = state; } 160 void setState(NotificationState state) { m_state = state; }
161 161
162 NotificationState m_state; 162 NotificationState m_state;
163 163
164 AsyncMethodRunner<Notification> m_asyncRunner; 164 AsyncMethodRunner<Notification> m_asyncRunner;
165 }; 165 };
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif // Notification_h 169 #endif // Notification_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698