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

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

Issue 640143004: Remove context menus. (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/page/EventHandler.cpp ('k') | sky/engine/core/page/Page.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, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 25 matching lines...) Expand all
36 #include "wtf/HashSet.h" 36 #include "wtf/HashSet.h"
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class AutoscrollController; 42 class AutoscrollController;
43 class Chrome; 43 class Chrome;
44 class ChromeClient; 44 class ChromeClient;
45 class ClientRectList; 45 class ClientRectList;
46 class ContextMenuClient;
47 class ContextMenuController;
48 class Document; 46 class Document;
49 class DragCaretController; 47 class DragCaretController;
50 class EditorClient; 48 class EditorClient;
51 class FocusController; 49 class FocusController;
52 class Frame; 50 class Frame;
53 class FrameHost; 51 class FrameHost;
54 class PageLifecycleNotifier; 52 class PageLifecycleNotifier;
55 class PlatformMouseEvent; 53 class PlatformMouseEvent;
56 class Range; 54 class Range;
57 class RenderBox; 55 class RenderBox;
(...skipping 17 matching lines...) Expand all
75 static void scheduleForcedStyleRecalcForAllPages(); 73 static void scheduleForcedStyleRecalcForAllPages();
76 74
77 // It is up to the platform to ensure that non-null clients are provided whe re required. 75 // It is up to the platform to ensure that non-null clients are provided whe re required.
78 struct PageClients { 76 struct PageClients {
79 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; 77 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED;
80 public: 78 public:
81 PageClients(); 79 PageClients();
82 ~PageClients(); 80 ~PageClients();
83 81
84 ChromeClient* chromeClient; 82 ChromeClient* chromeClient;
85 ContextMenuClient* contextMenuClient;
86 EditorClient* editorClient; 83 EditorClient* editorClient;
87 SpellCheckerClient* spellCheckerClient; 84 SpellCheckerClient* spellCheckerClient;
88 }; 85 };
89 86
90 explicit Page(PageClients&); 87 explicit Page(PageClients&);
91 virtual ~Page(); 88 virtual ~Page();
92 89
93 void makeOrdinary(); 90 void makeOrdinary();
94 91
95 // This method returns all pages, incl. private ones associated with 92 // This method returns all pages, incl. private ones associated with
(...skipping 19 matching lines...) Expand all
115 void documentDetached(Document*); 112 void documentDetached(Document*);
116 113
117 bool openedByDOM() const; 114 bool openedByDOM() const;
118 void setOpenedByDOM(); 115 void setOpenedByDOM();
119 116
120 PageAnimator& animator() { return m_animator; } 117 PageAnimator& animator() { return m_animator; }
121 Chrome& chrome() const { return *m_chrome; } 118 Chrome& chrome() const { return *m_chrome; }
122 AutoscrollController& autoscrollController() const { return *m_autoscrollCon troller; } 119 AutoscrollController& autoscrollController() const { return *m_autoscrollCon troller; }
123 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; } 120 DragCaretController& dragCaretController() const { return *m_dragCaretContro ller; }
124 FocusController& focusController() const { return *m_focusController; } 121 FocusController& focusController() const { return *m_focusController; }
125 ContextMenuController& contextMenuController() const { return *m_contextMenu Controller; }
126 122
127 ScrollingCoordinator* scrollingCoordinator(); 123 ScrollingCoordinator* scrollingCoordinator();
128 124
129 String mainThreadScrollingReasonsAsText(); 125 String mainThreadScrollingReasonsAsText();
130 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra me*); 126 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra me*);
131 127
132 Settings& settings() const { return *m_settings; } 128 Settings& settings() const { return *m_settings; }
133 129
134 UseCounter& useCounter() { return m_useCounter; } 130 UseCounter& useCounter() { return m_useCounter; }
135 131
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void setNeedsLayoutInAllFrames(); 179 void setNeedsLayoutInAllFrames();
184 180
185 // SettingsDelegate overrides. 181 // SettingsDelegate overrides.
186 virtual void settingsChanged(SettingsDelegate::ChangeType) OVERRIDE; 182 virtual void settingsChanged(SettingsDelegate::ChangeType) OVERRIDE;
187 183
188 PageAnimator m_animator; 184 PageAnimator m_animator;
189 const OwnPtr<AutoscrollController> m_autoscrollController; 185 const OwnPtr<AutoscrollController> m_autoscrollController;
190 const OwnPtr<Chrome> m_chrome; 186 const OwnPtr<Chrome> m_chrome;
191 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController; 187 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController;
192 const OwnPtr<FocusController> m_focusController; 188 const OwnPtr<FocusController> m_focusController;
193 const OwnPtrWillBeMember<ContextMenuController> m_contextMenuController;
194 OwnPtr<ScrollingCoordinator> m_scrollingCoordinator; 189 OwnPtr<ScrollingCoordinator> m_scrollingCoordinator;
195 const OwnPtrWillBeMember<UndoStack> m_undoStack; 190 const OwnPtrWillBeMember<UndoStack> m_undoStack;
196 191
197 // Typically, the main frame and Page should both be owned by the embedder, 192 // Typically, the main frame and Page should both be owned by the embedder,
198 // which must call Page::willBeDestroyed() prior to destroying Page. This 193 // which must call Page::willBeDestroyed() prior to destroying Page. This
199 // call detaches the main frame and clears this pointer, thus ensuring that 194 // call detaches the main frame and clears this pointer, thus ensuring that
200 // this field only references a live main frame. 195 // this field only references a live main frame.
201 // 196 //
202 // However, there are several locations (InspectorOverlay) 197 // However, there are several locations (InspectorOverlay)
203 // which don't hold a reference to the main frame at all 198 // which don't hold a reference to the main frame at all
(...skipping 28 matching lines...) Expand all
232 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers; 227 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers;
233 228
234 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 229 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
235 // FIXME: Most of the members of Page should move onto FrameHost. 230 // FIXME: Most of the members of Page should move onto FrameHost.
236 OwnPtrWillBeMember<FrameHost> m_frameHost; 231 OwnPtrWillBeMember<FrameHost> m_frameHost;
237 }; 232 };
238 233
239 } // namespace blink 234 } // namespace blink
240 235
241 #endif // Page_h 236 #endif // Page_h
OLDNEW
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698