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

Side by Side Diff: sky/engine/public/web/WebFrame.h

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Returns the bounds rect for current selection. If selection is performed 293 // Returns the bounds rect for current selection. If selection is performed
294 // on transformed text, the rect will still bound the selection but will 294 // on transformed text, the rect will still bound the selection but will
295 // not be transformed itself. If no selection is present, the rect will be 295 // not be transformed itself. If no selection is present, the rect will be
296 // empty ((0,0), (0,0)). 296 // empty ((0,0), (0,0)).
297 virtual WebRect selectionBoundsRect() const = 0; 297 virtual WebRect selectionBoundsRect() const = 0;
298 298
299 // Only for testing purpose: 299 // Only for testing purpose:
300 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|. 300 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|.
301 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0; 301 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0;
302 302
303 // Dumps the layer tree, used by the accelerated compositor, in
304 // text form. This is used only by layout tests.
305 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
306
307 #if BLINK_IMPLEMENTATION 303 #if BLINK_IMPLEMENTATION
308 static WebFrame* fromFrame(Frame*); 304 static WebFrame* fromFrame(Frame*);
309 #endif 305 #endif
310 306
311 protected: 307 protected:
312 explicit WebFrame(); 308 explicit WebFrame();
313 virtual ~WebFrame(); 309 virtual ~WebFrame();
314 310
315 private: 311 private:
316 }; 312 };
317 313
318 #if BLINK_IMPLEMENTATION 314 #if BLINK_IMPLEMENTATION
319 Frame* toCoreFrame(const WebFrame*); 315 Frame* toCoreFrame(const WebFrame*);
320 #endif 316 #endif
321 317
322 } // namespace blink 318 } // namespace blink
323 319
324 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ 320 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698