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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 640803004: Add a basic DOMWindow base class and use it in WindowProxy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 2 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/core.gypi ('k') | Source/core/frame/Frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 namespace blink {
6
7 class ScriptWrappable;
8
9 class DOMWindow {
10 public:
11 // Ideally, DOMWindow would be a ScriptWrappable. However, LocalDOMWindow
12 // already has a ScriptWrappable subclass via EventTargetWithInlineData. As
13 // a result, making DOMWindow a ScriptWrappable would force callers of
14 // ScriptWrappable methods on DOMWindow methods to disambiguate which base
15 // class to access the methods through. To avoid this trouble, DOMWindow
16 // exposes an interface method to convert the DOMWindow to a ScriptWrappable
17 // instead.
18 virtual ScriptWrappable* toScriptWrappable() = 0;
19 };
20
21 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698