OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 } | 1165 } |
1166 | 1166 |
1167 std::pair<int, int> FrameSelection::LayoutSelectionStartEnd() { | 1167 std::pair<int, int> FrameSelection::LayoutSelectionStartEnd() { |
1168 return layout_selection_->SelectionStartEnd(); | 1168 return layout_selection_->SelectionStartEnd(); |
1169 } | 1169 } |
1170 | 1170 |
1171 void FrameSelection::ClearLayoutSelection() { | 1171 void FrameSelection::ClearLayoutSelection() { |
1172 layout_selection_->ClearSelection(); | 1172 layout_selection_->ClearSelection(); |
1173 } | 1173 } |
1174 | 1174 |
| 1175 bool FrameSelection::LayoutSelectionForceHide() { |
| 1176 return layout_selection_->ForceHide(); |
| 1177 } |
| 1178 |
1175 } // namespace blink | 1179 } // namespace blink |
1176 | 1180 |
1177 #ifndef NDEBUG | 1181 #ifndef NDEBUG |
1178 | 1182 |
1179 void showTree(const blink::FrameSelection& sel) { | 1183 void showTree(const blink::FrameSelection& sel) { |
1180 sel.ShowTreeForThis(); | 1184 sel.ShowTreeForThis(); |
1181 } | 1185 } |
1182 | 1186 |
1183 void showTree(const blink::FrameSelection* sel) { | 1187 void showTree(const blink::FrameSelection* sel) { |
1184 if (sel) | 1188 if (sel) |
1185 sel->ShowTreeForThis(); | 1189 sel->ShowTreeForThis(); |
1186 else | 1190 else |
1187 LOG(INFO) << "Cannot showTree for <null> FrameSelection."; | 1191 LOG(INFO) << "Cannot showTree for <null> FrameSelection."; |
1188 } | 1192 } |
1189 | 1193 |
1190 #endif | 1194 #endif |
OLD | NEW |