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

Side by Side Diff: Source/core/page/DOMSelection.h

Issue 134043004: Update page & frame classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/core/page/Chrome.h ('k') | Source/core/page/DOMWindowPagePopup.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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 class Frame; 43 class Frame;
44 class Node; 44 class Node;
45 class Position; 45 class Position;
46 class Range; 46 class Range;
47 class TreeScope; 47 class TreeScope;
48 class VisibleSelection; 48 class VisibleSelection;
49 49
50 class DOMSelection : public RefCounted<DOMSelection>, public ScriptWrappable, pu blic DOMWindowProperty { 50 class DOMSelection FINAL : public RefCounted<DOMSelection>, public ScriptWrappab le, public DOMWindowProperty {
51 public: 51 public:
52 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) { return adoptRef(new DOMSelection(treeScope)); } 52 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) { return adoptRef(new DOMSelection(treeScope)); }
53 53
54 void clearTreeScope(); 54 void clearTreeScope();
55 55
56 // Safari Selection Object API 56 // Safari Selection Object API
57 // These methods return the valid equivalents of internal editing positions. 57 // These methods return the valid equivalents of internal editing positions.
58 Node* baseNode() const; 58 Node* baseNode() const;
59 Node* extentNode() const; 59 Node* extentNode() const;
60 int baseOffset() const; 60 int baseOffset() const;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 Node* shadowAdjustedNode(const Position&) const; 102 Node* shadowAdjustedNode(const Position&) const;
103 int shadowAdjustedOffset(const Position&) const; 103 int shadowAdjustedOffset(const Position&) const;
104 104
105 bool isValidForPosition(Node*) const; 105 bool isValidForPosition(Node*) const;
106 }; 106 };
107 107
108 } // namespace WebCore 108 } // namespace WebCore
109 109
110 #endif // DOMSelection_h 110 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/DOMWindowPagePopup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698