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

Side by Side Diff: sky/engine/core/page/FocusController.h

Issue 704413007: Remove HTMLShadowElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/core/html/HTMLTagNames.in ('k') | sky/engine/core/page/FocusController.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) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 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 21 matching lines...) Expand all
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 #include "wtf/Noncopyable.h" 33 #include "wtf/Noncopyable.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 struct FocusCandidate; 38 struct FocusCandidate;
39 class Document; 39 class Document;
40 class Element; 40 class Element;
41 class LocalFrame; 41 class LocalFrame;
42 class HTMLShadowElement;
43 class IntRect; 42 class IntRect;
44 class KeyboardEvent; 43 class KeyboardEvent;
45 class Node; 44 class Node;
46 class Page; 45 class Page;
47 class TreeScope; 46 class TreeScope;
48 47
49 class FocusNavigationScope { 48 class FocusNavigationScope {
50 STACK_ALLOCATED(); 49 STACK_ALLOCATED();
51 public: 50 public:
52 Node* rootNode() const; 51 Node* rootNode() const;
53 Element* owner() const; 52 Element* owner() const;
54 static FocusNavigationScope focusNavigationScopeOf(Node*); 53 static FocusNavigationScope focusNavigationScopeOf(Node*);
55 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node*); 54 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node*);
56 static FocusNavigationScope ownedByShadowHost(Node*); 55 static FocusNavigationScope ownedByShadowHost(Node*);
57 static FocusNavigationScope ownedByShadowInsertionPoint(HTMLShadowElement*);
58 56
59 private: 57 private:
60 explicit FocusNavigationScope(TreeScope*); 58 explicit FocusNavigationScope(TreeScope*);
61 RawPtr<TreeScope> m_rootTreeScope; 59 RawPtr<TreeScope> m_rootTreeScope;
62 }; 60 };
63 61
64 class FocusController { 62 class FocusController {
65 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED; 63 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED;
66 public: 64 public:
67 static PassOwnPtr<FocusController> create(Page*); 65 static PassOwnPtr<FocusController> create(Page*);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 Page* m_page; 109 Page* m_page;
112 RefPtr<LocalFrame> m_focusedFrame; 110 RefPtr<LocalFrame> m_focusedFrame;
113 bool m_isActive; 111 bool m_isActive;
114 bool m_isFocused; 112 bool m_isFocused;
115 bool m_isChangingFocusedFrame; 113 bool m_isChangingFocusedFrame;
116 }; 114 };
117 115
118 } // namespace blink 116 } // namespace blink
119 117
120 #endif // FocusController_h 118 #endif // FocusController_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLTagNames.in ('k') | sky/engine/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698