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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.h

Issue 872143004: Remove more properties from the global Window. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/StyleMedia.idl ('k') | sky/engine/core/frame/LocalDOMWindow.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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 Screen& screen() const; 112 Screen& screen() const;
113 113
114 Location& location() const; 114 Location& location() const;
115 void setLocation(const String& location, LocalDOMWindow* callingWindow, Loca lDOMWindow* enteredWindow, 115 void setLocation(const String& location, LocalDOMWindow* callingWindow, Loca lDOMWindow* enteredWindow,
116 SetLocationLocking = LockHistoryBasedOnGestureState); 116 SetLocationLocking = LockHistoryBasedOnGestureState);
117 117
118 DOMSelection* getSelection(); 118 DOMSelection* getSelection();
119 119
120 void focus(ExecutionContext* = 0); 120 void focus(ExecutionContext* = 0);
121 121
122 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const;
123
124 int outerHeight() const; 122 int outerHeight() const;
125 int outerWidth() const; 123 int outerWidth() const;
126 int innerHeight() const; 124 int innerHeight() const;
127 int innerWidth() const; 125 int innerWidth() const;
128 int screenX() const; 126 int screenX() const;
129 int screenY() const; 127 int screenY() const;
130 int screenLeft() const { return screenX(); } 128 int screenLeft() const { return screenX(); }
131 int screenTop() const { return screenY(); } 129 int screenTop() const { return screenY(); }
132 130
133 // FIXME(sky): keeping self for now since js-test.html uses it. 131 // FIXME(sky): keeping self for now since js-test.html uses it.
134 LocalDOMWindow* window() const; 132 LocalDOMWindow* window() const;
135 LocalDOMWindow* self() const { return window(); }
136 133
137 // DOM Level 2 AbstractView Interface 134 // DOM Level 2 AbstractView Interface
138 135
139 Document* document() const; 136 Document* document() const;
140 137
141 // CSSOM View Module 138 // CSSOM View Module
142 139
143 StyleMedia& styleMedia() const; 140 StyleMedia& styleMedia() const;
144 141
145 // DOM Level 2 Style Interface 142 // DOM Level 2 Style Interface
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 231
235 #if ENABLE(ASSERT) 232 #if ENABLE(ASSERT)
236 bool m_hasBeenReset; 233 bool m_hasBeenReset;
237 #endif 234 #endif
238 235
239 HashSet<DOMWindowProperty*> m_properties; 236 HashSet<DOMWindowProperty*> m_properties;
240 237
241 mutable RefPtr<Screen> m_screen; 238 mutable RefPtr<Screen> m_screen;
242 mutable RefPtr<Console> m_console; 239 mutable RefPtr<Console> m_console;
243 mutable RefPtr<Location> m_location; 240 mutable RefPtr<Location> m_location;
244 mutable RefPtr<StyleMedia> m_media;
245 241
246 mutable RefPtr<DOMWindowCSS> m_css; 242 mutable RefPtr<DOMWindowCSS> m_css;
247 243
248 RefPtr<DOMWindowEventQueue> m_eventQueue; 244 RefPtr<DOMWindowEventQueue> m_eventQueue;
249 }; 245 };
250 246
251 } // namespace blink 247 } // namespace blink
252 248
253 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_ 249 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/StyleMedia.idl ('k') | sky/engine/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698