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

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

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: addressed comments Created 3 years, 5 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 template <typename Strategy> 56 template <typename Strategy>
57 class EphemeralRangeTemplate; 57 class EphemeralRangeTemplate;
58 class EventHandler; 58 class EventHandler;
59 class FetchParameters; 59 class FetchParameters;
60 class FloatSize; 60 class FloatSize;
61 class FrameConsole; 61 class FrameConsole;
62 class FrameResourceCoordinator; 62 class FrameResourceCoordinator;
63 class FrameSelection; 63 class FrameSelection;
64 class InputMethodController; 64 class InputMethodController;
65 class CoreProbeSink; 65 class CoreProbeSink;
66 class HTMLMediaElement;
66 class InterfaceProvider; 67 class InterfaceProvider;
67 class InterfaceRegistry; 68 class InterfaceRegistry;
68 class IntPoint; 69 class IntPoint;
69 class IntSize; 70 class IntSize;
70 class LayoutView; 71 class LayoutView;
71 class LayoutViewItem; 72 class LayoutViewItem;
72 class LocalDOMWindow; 73 class LocalDOMWindow;
73 class LocalWindowProxy; 74 class LocalWindowProxy;
74 class LocalFrameClient; 75 class LocalFrameClient;
75 class NavigationScheduler; 76 class NavigationScheduler;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool ShouldClose() override; 123 bool ShouldClose() override;
123 SecurityContext* GetSecurityContext() const override; 124 SecurityContext* GetSecurityContext() const override;
124 void PrintNavigationErrorMessage(const Frame&, const char* reason) override; 125 void PrintNavigationErrorMessage(const Frame&, const char* reason) override;
125 void PrintNavigationWarning(const String&) override; 126 void PrintNavigationWarning(const String&) override;
126 bool PrepareForCommit() override; 127 bool PrepareForCommit() override;
127 void DidChangeVisibilityState() override; 128 void DidChangeVisibilityState() override;
128 129
129 void DetachChildren(); 130 void DetachChildren();
130 void DocumentAttached(); 131 void DocumentAttached();
131 132
133 void ShowDownloadMediaInProductHelp(HTMLMediaElement&);
134 bool IsDownloadMediaInProductHelpVisibleForElement(HTMLMediaElement&);
135 void NotifyMediaControlsHidden(HTMLMediaElement&);
136 void LayoutUpdated();
137 void NotifyInProductHelpDismissed();
138
132 Frame* FindFrameForNavigation(const AtomicString& name, 139 Frame* FindFrameForNavigation(const AtomicString& name,
133 LocalFrame& active_frame); 140 LocalFrame& active_frame);
134 141
135 // Note: these two functions are not virtual but intentionally shadow the 142 // Note: these two functions are not virtual but intentionally shadow the
136 // corresponding method in the Frame base class to return the 143 // corresponding method in the Frame base class to return the
137 // LocalFrame-specific subclass. 144 // LocalFrame-specific subclass.
138 LocalWindowProxy* WindowProxy(DOMWrapperWorld&); 145 LocalWindowProxy* WindowProxy(DOMWrapperWorld&);
139 LocalDOMWindow* DomWindow() const; 146 LocalDOMWindow* DomWindow() const;
140 void SetDOMWindow(LocalDOMWindow*); 147 void SetDOMWindow(LocalDOMWindow*);
141 LocalFrameView* View() const override; 148 LocalFrameView* View() const override;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 bool in_view_source_mode_; 327 bool in_view_source_mode_;
321 328
322 Member<CoreProbeSink> probe_sink_; 329 Member<CoreProbeSink> probe_sink_;
323 Member<PerformanceMonitor> performance_monitor_; 330 Member<PerformanceMonitor> performance_monitor_;
324 331
325 InterfaceProvider* const interface_provider_; 332 InterfaceProvider* const interface_provider_;
326 InterfaceRegistry* const interface_registry_; 333 InterfaceRegistry* const interface_registry_;
327 334
328 IntRect remote_viewport_intersection_; 335 IntRect remote_viewport_intersection_;
329 Member<FrameResourceCoordinator> frame_resource_coordinator_; 336 Member<FrameResourceCoordinator> frame_resource_coordinator_;
337
338 // Restricts showing the download media in-product help to once per frame.
339 bool media_in_product_help_shown_for_frame_ = false;
340 WeakMember<HTMLMediaElement> element_with_active_in_product_help_;
330 }; 341 };
331 342
332 inline FrameLoader& LocalFrame::Loader() const { 343 inline FrameLoader& LocalFrame::Loader() const {
333 return loader_; 344 return loader_;
334 } 345 }
335 346
336 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const { 347 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const {
337 DCHECK(navigation_scheduler_); 348 DCHECK(navigation_scheduler_);
338 return *navigation_scheduler_.Get(); 349 return *navigation_scheduler_.Get();
339 } 350 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 explicit ScopedFrameBlamer(LocalFrame*); 432 explicit ScopedFrameBlamer(LocalFrame*);
422 ~ScopedFrameBlamer(); 433 ~ScopedFrameBlamer();
423 434
424 private: 435 private:
425 Member<LocalFrame> frame_; 436 Member<LocalFrame> frame_;
426 }; 437 };
427 438
428 } // namespace blink 439 } // namespace blink
429 440
430 #endif // LocalFrame_h 441 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698