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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 17351003: Rename ContextDestructionObserver to ContextLifecycleObserver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reapplied Created 7 years, 6 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 delete s_pagePopupDriver; 188 delete s_pagePopupDriver;
189 s_pagePopupDriver = 0; 189 s_pagePopupDriver = 0;
190 page->chrome().client()->resetPagePopupDriver(); 190 page->chrome().client()->resetPagePopupDriver();
191 if (!page->mainFrame()->editor()->isContinuousSpellCheckingEnabled()) 191 if (!page->mainFrame()->editor()->isContinuousSpellCheckingEnabled())
192 page->mainFrame()->editor()->toggleContinuousSpellChecking(); 192 page->mainFrame()->editor()->toggleContinuousSpellChecking();
193 if (page->mainFrame()->editor()->isOverwriteModeEnabled()) 193 if (page->mainFrame()->editor()->isOverwriteModeEnabled())
194 page->mainFrame()->editor()->toggleOverwriteModeEnabled(); 194 page->mainFrame()->editor()->toggleOverwriteModeEnabled();
195 } 195 }
196 196
197 Internals::Internals(Document* document) 197 Internals::Internals(Document* document)
198 : ContextDestructionObserver(document) 198 : ContextLifecycleObserver(document)
199 , m_runtimeFlags(InternalRuntimeFlags::create()) 199 , m_runtimeFlags(InternalRuntimeFlags::create())
200 { 200 {
201 } 201 }
202 202
203 Document* Internals::contextDocument() const 203 Document* Internals::contextDocument() const
204 { 204 {
205 return toDocument(scriptExecutionContext()); 205 return toDocument(scriptExecutionContext());
206 } 206 }
207 207
208 Frame* Internals::frame() const 208 Frame* Internals::frame() const
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 1946
1947 RenderObject* renderer = select->renderer(); 1947 RenderObject* renderer = select->renderer();
1948 if (!renderer->isMenuList()) 1948 if (!renderer->isMenuList())
1949 return false; 1949 return false;
1950 1950
1951 RenderMenuList* menuList = toRenderMenuList(renderer); 1951 RenderMenuList* menuList = toRenderMenuList(renderer);
1952 return menuList->popupIsVisible(); 1952 return menuList->popupIsVisible();
1953 } 1953 }
1954 1954
1955 } 1955 }
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698