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

Side by Side Diff: content/browser/tab_contents/tab_contents_view_android.h

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/public/browser/web_contents_view.h" 9 #include "content/public/browser/web_contents_view.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void CreateNewWidget(int route_id, 47 virtual void CreateNewWidget(int route_id,
48 WebKit::WebPopupType popup_type) OVERRIDE; 48 WebKit::WebPopupType popup_type) OVERRIDE;
49 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 49 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
50 virtual void ShowCreatedWindow(int route_id, 50 virtual void ShowCreatedWindow(int route_id,
51 WindowOpenDisposition disposition, 51 WindowOpenDisposition disposition,
52 const gfx::Rect& initial_pos, 52 const gfx::Rect& initial_pos,
53 bool user_gesture) OVERRIDE; 53 bool user_gesture) OVERRIDE;
54 virtual void ShowCreatedWidget(int route_id, 54 virtual void ShowCreatedWidget(int route_id,
55 const gfx::Rect& initial_pos) OVERRIDE; 55 const gfx::Rect& initial_pos) OVERRIDE;
56 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; 56 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
57 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; 57 virtual void ShowContextMenu(
58 const content::ContextMenuParams& params) OVERRIDE;
58 virtual void ShowPopupMenu(const gfx::Rect& bounds, 59 virtual void ShowPopupMenu(const gfx::Rect& bounds,
59 int item_height, 60 int item_height,
60 double item_font_size, 61 double item_font_size,
61 int selected_item, 62 int selected_item,
62 const std::vector<WebMenuItem>& items, 63 const std::vector<WebMenuItem>& items,
63 bool right_aligned) OVERRIDE; 64 bool right_aligned) OVERRIDE;
64 virtual void StartDragging(const WebDropData& drop_data, 65 virtual void StartDragging(const WebDropData& drop_data,
65 WebKit::WebDragOperationsMask allowed_ops, 66 WebKit::WebDragOperationsMask allowed_ops,
66 const SkBitmap& image, 67 const SkBitmap& image,
67 const gfx::Point& image_offset) OVERRIDE; 68 const gfx::Point& image_offset) OVERRIDE;
68 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 69 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
69 virtual void GotFocus() OVERRIDE; 70 virtual void GotFocus() OVERRIDE;
70 virtual void TakeFocus(bool reverse) OVERRIDE; 71 virtual void TakeFocus(bool reverse) OVERRIDE;
71 72
72 private: 73 private:
73 // The WebContents whose contents we display. 74 // The WebContents whose contents we display.
74 content::WebContents* web_contents_; 75 content::WebContents* web_contents_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(TabContentsViewAndroid); 77 DISALLOW_COPY_AND_ASSIGN(TabContentsViewAndroid);
77 }; 78 };
78 79
79 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_ 80 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698