OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 MutationEvents, | 44 MutationEvents, |
45 PushState, | 45 PushState, |
46 FeatureTypeSize // Should be the last entry. | 46 FeatureTypeSize // Should be the last entry. |
47 }; | 47 }; |
48 | 48 |
49 static const char* supplementName(); | 49 static const char* supplementName(); |
50 static ContextFeatures* defaultSwitch(); | 50 static ContextFeatures* defaultSwitch(); |
51 static PassRefPtr<ContextFeatures> create(ContextFeaturesClient*); | 51 static PassRefPtr<ContextFeatures> create(ContextFeaturesClient*); |
52 | 52 |
53 static bool dialogElementEnabled(Document*); | 53 static bool dialogElementEnabled(Document*); |
54 static bool styleScopedEnabled(Document*); | |
55 static bool pagePopupEnabled(Document*); | 54 static bool pagePopupEnabled(Document*); |
56 static bool mutationEventsEnabled(Document*); | 55 static bool mutationEventsEnabled(Document*); |
57 static bool pushStateEnabled(Document*); | 56 static bool pushStateEnabled(Document*); |
58 | 57 |
59 bool isEnabled(Document*, FeatureType, bool) const; | 58 bool isEnabled(Document*, FeatureType, bool) const; |
60 void urlDidChange(Document*); | 59 void urlDidChange(Document*); |
61 | 60 |
62 private: | 61 private: |
63 explicit ContextFeatures(ContextFeaturesClient* client) | 62 explicit ContextFeatures(ContextFeaturesClient* client) |
64 : m_client(client) | 63 : m_client(client) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // See issue 294180 | 107 // See issue 294180 |
109 // | 108 // |
110 // if (m_client) | 109 // if (m_client) |
111 // return; | 110 // return; |
112 // m_client->urlDidChange(document); | 111 // m_client->urlDidChange(document); |
113 } | 112 } |
114 | 113 |
115 } // namespace WebCore | 114 } // namespace WebCore |
116 | 115 |
117 #endif // ContextFeatures_h | 116 #endif // ContextFeatures_h |
OLD | NEW |