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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2868173002: Add PlatformLocalFrame class. (Closed)
Patch Set: this time with new file included Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 18 matching lines...) Expand all
29 #ifndef LocalFrame_h 29 #ifndef LocalFrame_h
30 #define LocalFrame_h 30 #define LocalFrame_h
31 31
32 #include <memory> 32 #include <memory>
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/dom/WeakIdentifierMap.h" 34 #include "core/dom/WeakIdentifierMap.h"
35 #include "core/frame/Frame.h" 35 #include "core/frame/Frame.h"
36 #include "core/loader/FrameLoader.h" 36 #include "core/loader/FrameLoader.h"
37 #include "core/page/FrameTree.h" 37 #include "core/page/FrameTree.h"
38 #include "core/paint/PaintPhase.h" 38 #include "core/paint/PaintPhase.h"
39 #include "platform/PlatformLocalFrame.h"
39 #include "platform/Supplementable.h" 40 #include "platform/Supplementable.h"
40 #include "platform/graphics/ImageOrientation.h" 41 #include "platform/graphics/ImageOrientation.h"
41 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
42 #include "platform/scroll/ScrollTypes.h" 43 #include "platform/scroll/ScrollTypes.h"
43 #include "platform/wtf/HashSet.h" 44 #include "platform/wtf/HashSet.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class Color; 48 class Color;
48 class ContentSettingsClient; 49 class ContentSettingsClient;
(...skipping 29 matching lines...) Expand all
78 template <typename Strategy> 79 template <typename Strategy>
79 class PositionWithAffinityTemplate; 80 class PositionWithAffinityTemplate;
80 class PluginData; 81 class PluginData;
81 class ScriptController; 82 class ScriptController;
82 class SpellChecker; 83 class SpellChecker;
83 class WebFrameScheduler; 84 class WebFrameScheduler;
84 85
85 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; 86 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
86 87
87 class CORE_EXPORT LocalFrame final : public Frame, 88 class CORE_EXPORT LocalFrame final : public Frame,
89 public PlatformLocalFrame,
88 public Supplementable<LocalFrame> { 90 public Supplementable<LocalFrame> {
89 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); 91 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame);
90 92
91 friend class LocalFrameTest; 93 friend class LocalFrameTest;
92 94
93 public: 95 public:
94 static LocalFrame* Create(LocalFrameClient*, 96 static LocalFrame* Create(LocalFrameClient*,
95 Page&, 97 Page&,
96 FrameOwner*, 98 FrameOwner*,
97 InterfaceProvider* = nullptr, 99 InterfaceProvider* = nullptr,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 inline EventHandler& LocalFrame::GetEventHandler() const { 341 inline EventHandler& LocalFrame::GetEventHandler() const {
340 DCHECK(event_handler_); 342 DCHECK(event_handler_);
341 return *event_handler_; 343 return *event_handler_;
342 } 344 }
343 345
344 DEFINE_TYPE_CASTS(LocalFrame, 346 DEFINE_TYPE_CASTS(LocalFrame,
345 Frame, 347 Frame,
346 localFrame, 348 localFrame,
347 localFrame->IsLocalFrame(), 349 localFrame->IsLocalFrame(),
348 localFrame.IsLocalFrame()); 350 localFrame.IsLocalFrame());
351 DEFINE_TYPE_CASTS(LocalFrame,
352 PlatformLocalFrame,
353 platform_local_frame,
354 platform_local_frame->IsLocalFrame(),
355 platform_local_frame.IsLocalFrame());
349 356
350 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 357 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
351 358
352 class FrameNavigationDisabler { 359 class FrameNavigationDisabler {
353 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler); 360 WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler);
354 STACK_ALLOCATED(); 361 STACK_ALLOCATED();
355 362
356 public: 363 public:
357 explicit FrameNavigationDisabler(LocalFrame&); 364 explicit FrameNavigationDisabler(LocalFrame&);
358 ~FrameNavigationDisabler(); 365 ~FrameNavigationDisabler();
(...skipping 24 matching lines...) Expand all
383 explicit ScopedFrameBlamer(LocalFrame*); 390 explicit ScopedFrameBlamer(LocalFrame*);
384 ~ScopedFrameBlamer(); 391 ~ScopedFrameBlamer();
385 392
386 private: 393 private:
387 Member<LocalFrame> frame_; 394 Member<LocalFrame> frame_;
388 }; 395 };
389 396
390 } // namespace blink 397 } // namespace blink
391 398
392 #endif // LocalFrame_h 399 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameViewTest.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698