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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.h

Issue 771093002: Use a JS markup serializer. (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
« no previous file with comments | « sky/engine/public/web/WebFrame.h ('k') | sky/engine/web/WebLocalFrameImpl.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) 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void selectRange(const WebPoint& base, const WebPoint& extent) overr ide; 114 virtual void selectRange(const WebPoint& base, const WebPoint& extent) overr ide;
115 virtual void selectRange(const WebRange&) override; 115 virtual void selectRange(const WebRange&) override;
116 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) override; 116 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) override;
117 virtual void moveCaretSelection(const WebPoint&) override; 117 virtual void moveCaretSelection(const WebPoint&) override;
118 virtual bool setEditableSelectionOffsets(int start, int end) override; 118 virtual bool setEditableSelectionOffsets(int start, int end) override;
119 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) override; 119 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) override;
120 virtual void extendSelectionAndDelete(int before, int after) override; 120 virtual void extendSelectionAndDelete(int before, int after) override;
121 virtual void setCaretVisible(bool) override; 121 virtual void setCaretVisible(bool) override;
122 122
123 virtual WebString contentAsText(size_t maxChars) const override; 123 virtual WebString contentAsText(size_t maxChars) const override;
124 virtual WebString contentAsMarkup() const override;
125 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const override; 124 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const override;
126 virtual WebString markerTextForListItem(const WebElement&) const override; 125 virtual WebString markerTextForListItem(const WebElement&) const override;
127 virtual WebRect selectionBoundsRect() const override; 126 virtual WebRect selectionBoundsRect() const override;
128 127
129 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const override; 128 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const override;
130 129
131 static WebLocalFrameImpl* create(WebFrameClient*); 130 static WebLocalFrameImpl* create(WebFrameClient*);
132 virtual ~WebLocalFrameImpl(); 131 virtual ~WebLocalFrameImpl();
133 132
134 PassRefPtr<LocalFrame> initializeCoreFrame(FrameHost*); 133 PassRefPtr<LocalFrame> initializeCoreFrame(FrameHost*);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 177 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
179 IntSize m_inputEventsOffsetForEmulation; 178 IntSize m_inputEventsOffsetForEmulation;
180 float m_inputEventsScaleFactorForEmulation; 179 float m_inputEventsScaleFactorForEmulation;
181 }; 180 };
182 181
183 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 182 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
184 183
185 } // namespace blink 184 } // namespace blink
186 185
187 #endif // SKY_ENGINE_WEB_WEBLOCALFRAMEIMPL_H_ 186 #endif // SKY_ENGINE_WEB_WEBLOCALFRAMEIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebFrame.h ('k') | sky/engine/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698