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

Side by Side Diff: third_party/WebKit/Source/core/editing/FrameSelection.h

Issue 2642913003: Select All should show handles if they were already present (Closed)
Patch Set: forgot to change enum name in test Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.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) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 enum EAlteration { AlterationMove, AlterationExtend }; 81 enum EAlteration { AlterationMove, AlterationExtend };
82 enum SetSelectionOption { 82 enum SetSelectionOption {
83 // 1 << 0 is reserved for EUserTriggered 83 // 1 << 0 is reserved for EUserTriggered
84 CloseTyping = 1 << 1, 84 CloseTyping = 1 << 1,
85 ClearTypingStyle = 1 << 2, 85 ClearTypingStyle = 1 << 2,
86 DoNotSetFocus = 1 << 3, 86 DoNotSetFocus = 1 << 3,
87 DoNotUpdateAppearance = 1 << 4, 87 DoNotUpdateAppearance = 1 << 4,
88 DoNotClearStrategy = 1 << 5, 88 DoNotClearStrategy = 1 << 5,
89 DoNotAdjustInFlatTree = 1 << 6, 89 DoNotAdjustInFlatTree = 1 << 6,
90 HandleVisible = 1 << 7, 90 ShowHandle = 1 << 7,
91 PreserveHandle = 1 << 8,
91 }; 92 };
92 // Union of values in SetSelectionOption and EUserTriggered 93 // Union of values in SetSelectionOption and EUserTriggered
93 typedef unsigned SetSelectionOptions; 94 typedef unsigned SetSelectionOptions;
94 static inline EUserTriggered selectionOptionsToUserTriggered( 95 static inline EUserTriggered selectionOptionsToUserTriggered(
95 SetSelectionOptions options) { 96 SetSelectionOptions options) {
96 return static_cast<EUserTriggered>(options & UserTriggered); 97 return static_cast<EUserTriggered>(options & UserTriggered);
97 } 98 }
98 99
99 bool isAvailable() const { return m_document; } 100 bool isAvailable() const { return m_document; }
100 // You should not call |document()| when |!isAvailable()|. 101 // You should not call |document()| when |!isAvailable()|.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } 371 }
371 } // namespace blink 372 } // namespace blink
372 373
373 #ifndef NDEBUG 374 #ifndef NDEBUG
374 // Outside the WebCore namespace for ease of invocation from gdb. 375 // Outside the WebCore namespace for ease of invocation from gdb.
375 void showTree(const blink::FrameSelection&); 376 void showTree(const blink::FrameSelection&);
376 void showTree(const blink::FrameSelection*); 377 void showTree(const blink::FrameSelection*);
377 #endif 378 #endif
378 379
379 #endif // FrameSelection_h 380 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698