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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 251103: Move MediaPlayerAction to WebMediaPlayerAction. Switch to an enum and a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/common/page_transition_types.h" 9 #include "chrome/common/page_transition_types.h"
10 #include "webkit/glue/context_menu.h" 10 #include "webkit/glue/context_menu.h"
11 #include "webkit/glue/window_open_disposition.h" 11 #include "webkit/glue/window_open_disposition.h"
12 12
13 class Profile; 13 class Profile;
14 class TabContents; 14 class TabContents;
15 struct MediaPlayerAction; 15
16 namespace gfx {
17 class Point;
18 }
19
20 namespace WebKit {
21 struct WebMediaPlayerAction;
22 }
16 23
17 class RenderViewContextMenu { 24 class RenderViewContextMenu {
18 public: 25 public:
19 RenderViewContextMenu( 26 RenderViewContextMenu(
20 TabContents* tab_contents, 27 TabContents* tab_contents,
21 const ContextMenuParams& params); 28 const ContextMenuParams& params);
22 29
23 virtual ~RenderViewContextMenu(); 30 virtual ~RenderViewContextMenu();
24 31
25 // Initializes the context menu. 32 // Initializes the context menu.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 97
91 // Copy to the clipboard an image located at a point in the RenderView 98 // Copy to the clipboard an image located at a point in the RenderView
92 void CopyImageAt(int x, int y); 99 void CopyImageAt(int x, int y);
93 100
94 // Launch the inspector targeting a point in the RenderView 101 // Launch the inspector targeting a point in the RenderView
95 void Inspect(int x, int y); 102 void Inspect(int x, int y);
96 103
97 // Writes the specified text/url to the system clipboard 104 // Writes the specified text/url to the system clipboard
98 void WriteURLToClipboard(const GURL& url); 105 void WriteURLToClipboard(const GURL& url);
99 106
100 void MediaPlayerActionAt(int x, int y, const MediaPlayerAction& action); 107 void MediaPlayerActionAt(const gfx::Point& location,
108 const WebKit::WebMediaPlayerAction& action);
101 109
102 bool IsDevCommandEnabled(int id) const; 110 bool IsDevCommandEnabled(int id) const;
103 111
104 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 112 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
105 }; 113 };
106 114
107 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 115 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698