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

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

Issue 1180573003: Add option to dump line box tree when dumping layout tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: pointers->references Created 5 years, 6 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/web/WebLocalFrameImpl.cpp ('k') | no next file » | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // cross-site. 94 // cross-site.
95 // WebFrame is the base class for both WebLocalFrame and WebRemoteFrame and 95 // WebFrame is the base class for both WebLocalFrame and WebRemoteFrame and
96 // contains methods that are valid on both local and remote frames, such as 96 // contains methods that are valid on both local and remote frames, such as
97 // getting a frame's parent or its opener. 97 // getting a frame's parent or its opener.
98 class WebFrame { 98 class WebFrame {
99 public: 99 public:
100 // Control of layoutTreeAsText output 100 // Control of layoutTreeAsText output
101 enum LayoutAsTextControl { 101 enum LayoutAsTextControl {
102 LayoutAsTextNormal = 0, 102 LayoutAsTextNormal = 0,
103 LayoutAsTextDebug = 1 << 0, 103 LayoutAsTextDebug = 1 << 0,
104 LayoutAsTextPrinting = 1 << 1 104 LayoutAsTextPrinting = 1 << 1,
105 LayoutAsTextWithLineTrees = 1 << 2
105 }; 106 };
106 typedef unsigned LayoutAsTextControls; 107 typedef unsigned LayoutAsTextControls;
107 108
108 // FIXME: We already have blink::TextGranularity. For now we support only 109 // FIXME: We already have blink::TextGranularity. For now we support only
109 // a part of blink::TextGranularity. 110 // a part of blink::TextGranularity.
110 // Ideally it seems blink::TextGranularity should be broken up into 111 // Ideally it seems blink::TextGranularity should be broken up into
111 // blink::TextGranularity and perhaps blink::TextBoundary and then 112 // blink::TextGranularity and perhaps blink::TextBoundary and then
112 // TextGranularity enum could be moved somewhere to public/, and we could 113 // TextGranularity enum could be moved somewhere to public/, and we could
113 // just use it here directly without introducing a new enum. 114 // just use it here directly without introducing a new enum.
114 enum TextGranularity { 115 enum TextGranularity {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 734 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
734 }; 735 };
735 736
736 #if BLINK_IMPLEMENTATION 737 #if BLINK_IMPLEMENTATION
737 Frame* toCoreFrame(const WebFrame*); 738 Frame* toCoreFrame(const WebFrame*);
738 #endif 739 #endif
739 740
740 } // namespace blink 741 } // namespace blink
741 742
742 #endif 743 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698