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

Side by Side Diff: chromecast/browser/cast_content_window.h

Issue 1037593003: Propagate media play/pause to WebContentsObserver for Chromecast metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed observer methods Created 5 years, 9 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
« no previous file with comments | « no previous file | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 26 matching lines...) Expand all
37 // Create a window with the given size for |web_contents|. 37 // Create a window with the given size for |web_contents|.
38 void CreateWindowTree(const gfx::Size& initial_size, 38 void CreateWindowTree(const gfx::Size& initial_size,
39 content::WebContents* web_contents); 39 content::WebContents* web_contents);
40 40
41 scoped_ptr<content::WebContents> CreateWebContents( 41 scoped_ptr<content::WebContents> CreateWebContents(
42 const gfx::Size& initial_size, 42 const gfx::Size& initial_size,
43 content::BrowserContext* browser_context); 43 content::BrowserContext* browser_context);
44 44
45 // content::WebContentsObserver implementation: 45 // content::WebContentsObserver implementation:
46 void DidFirstVisuallyNonEmptyPaint() override; 46 void DidFirstVisuallyNonEmptyPaint() override;
47 void MediaPaused() override;
48 void MediaStartedPlaying() override;
47 49
48 private: 50 private:
49 #if defined(USE_AURA) 51 #if defined(USE_AURA)
50 scoped_ptr<aura::WindowTreeHost> window_tree_host_; 52 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
51 scoped_ptr<aura::test::TestFocusClient> focus_client_; 53 scoped_ptr<aura::test::TestFocusClient> focus_client_;
52 #endif 54 #endif
53 55
54 DISALLOW_COPY_AND_ASSIGN(CastContentWindow); 56 DISALLOW_COPY_AND_ASSIGN(CastContentWindow);
55 }; 57 };
56 58
57 } // namespace chromecast 59 } // namespace chromecast
58 60
59 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_ 61 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698