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

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

Issue 678193005: Remove more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/public/web/WebDocument.h ('k') | sky/engine/public/web/WebWidget.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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual WebLocalFrame* toWebLocalFrame() = 0; 97 virtual WebLocalFrame* toWebLocalFrame() = 0;
98 98
99 // This method closes and deletes the WebFrame. 99 // This method closes and deletes the WebFrame.
100 virtual void close() = 0; 100 virtual void close() = 0;
101 101
102 // Geometry ----------------------------------------------------------- 102 // Geometry -----------------------------------------------------------
103 103
104 // NOTE: These routines do not force page layout so their results may 104 // NOTE: These routines do not force page layout so their results may
105 // not be accurate if the page layout is out-of-date. 105 // not be accurate if the page layout is out-of-date.
106 106
107 // The scroll offset from the top-left corner of the frame in pixels.
108 virtual WebSize scrollOffset() const = 0;
109
110 // The minimum and maxium scroll positions in pixels.
111 virtual WebSize minimumScrollOffset() const = 0;
112 virtual WebSize maximumScrollOffset() const = 0;
113
114 // The size of the contents area. 107 // The size of the contents area.
115 virtual WebSize contentsSize() const = 0; 108 virtual WebSize contentsSize() const = 0;
116 109
117 // Returns true if the contents (minus scrollbars) has non-zero area. 110 // Returns true if the contents (minus scrollbars) has non-zero area.
118 virtual bool hasVisibleContent() const = 0; 111 virtual bool hasVisibleContent() const = 0;
119 112
120 // Returns the visible content rect (minus scrollbars, in absolute coordinat e) 113 // Returns the visible content rect (minus scrollbars, in absolute coordinat e)
121 virtual WebRect visibleContentRect() const = 0; 114 virtual WebRect visibleContentRect() const = 0;
122 115
123 virtual bool hasHorizontalScrollbar() const = 0; 116 virtual bool hasHorizontalScrollbar() const = 0;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 private: 320 private:
328 }; 321 };
329 322
330 #if BLINK_IMPLEMENTATION 323 #if BLINK_IMPLEMENTATION
331 Frame* toCoreFrame(const WebFrame*); 324 Frame* toCoreFrame(const WebFrame*);
332 #endif 325 #endif
333 326
334 } // namespace blink 327 } // namespace blink
335 328
336 #endif 329 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebDocument.h ('k') | sky/engine/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698