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

Side by Side Diff: Source/core/html/shadow/MediaControlElements.h

Issue 914043002: Tap on the video element toggles controls visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased, process mouse only for non-synthetic events. Created 5 years, 10 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) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 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 27 matching lines...) Expand all
38 38
39 class MediaControlPanelElement final : public MediaControlDivElement { 39 class MediaControlPanelElement final : public MediaControlDivElement {
40 public: 40 public:
41 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls &); 41 static PassRefPtrWillBeRawPtr<MediaControlPanelElement> create(MediaControls &);
42 42
43 void setIsDisplayed(bool); 43 void setIsDisplayed(bool);
44 44
45 void makeOpaque(); 45 void makeOpaque();
46 void makeTransparent(); 46 void makeTransparent();
47 47
48 bool isOpaque() const { return m_opaque; }
philipj_slow 2015/02/16 10:45:18 What about m_isDisplayed? I assume you want to che
Tima Vaisburd 2015/02/16 20:32:11 Thank you, I did not pay enough attention to this.
philipj_slow 2015/02/17 02:37:24 http://trac.webkit.org/changeset/115125 is where m
49
48 private: 50 private:
49 explicit MediaControlPanelElement(MediaControls&); 51 explicit MediaControlPanelElement(MediaControls&);
50 52
51 virtual void defaultEventHandler(Event*) override; 53 virtual void defaultEventHandler(Event*) override;
52 54
53 void startTimer(); 55 void startTimer();
54 void stopTimer(); 56 void stopTimer();
55 void transitionTimerFired(Timer<MediaControlPanelElement>*); 57 void transitionTimerFired(Timer<MediaControlPanelElement>*);
56 virtual bool keepEventInNode(Event*) override; 58 virtual bool keepEventInNode(Event*) override;
57 59
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 253 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
252 254
253 IntRect m_videoDisplaySize; 255 IntRect m_videoDisplaySize;
254 float m_fontSize; 256 float m_fontSize;
255 }; 257 };
256 258
257 259
258 } // namespace blink 260 } // namespace blink
259 261
260 #endif // MediaControlElements_h 262 #endif // MediaControlElements_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/shadow/MediaControlElements.cpp » ('j') | Source/core/html/shadow/MediaControlElements.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698