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

Side by Side Diff: content/browser/web_contents/web_contents_view_mac.h

Issue 12252016: Prevented connecting drag drop events to a SwappedOut RenderViewHost in WebContentsViewGtk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use RenderViewSwappedIn to ensure we have a drag dest Created 7 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 // 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_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // WebContentsViewPort implementation ---------------------------------------- 81 // WebContentsViewPort implementation ----------------------------------------
82 virtual void CreateView( 82 virtual void CreateView(
83 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 83 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
84 virtual RenderWidgetHostView* CreateViewForWidget( 84 virtual RenderWidgetHostView* CreateViewForWidget(
85 RenderWidgetHost* render_widget_host) OVERRIDE; 85 RenderWidgetHost* render_widget_host) OVERRIDE;
86 virtual RenderWidgetHostView* CreateViewForPopupWidget( 86 virtual RenderWidgetHostView* CreateViewForPopupWidget(
87 RenderWidgetHost* render_widget_host) OVERRIDE; 87 RenderWidgetHost* render_widget_host) OVERRIDE;
88 virtual void SetPageTitle(const string16& title) OVERRIDE; 88 virtual void SetPageTitle(const string16& title) OVERRIDE;
89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
90 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 90 virtual void RenderViewSwappedIn(RenderViewHost* new_host,
91 RenderViewHost* old_host) OVERRIDE;
91 virtual bool IsEventTracking() const OVERRIDE; 92 virtual bool IsEventTracking() const OVERRIDE;
92 virtual void CloseTabAfterEventTracking() OVERRIDE; 93 virtual void CloseTabAfterEventTracking() OVERRIDE;
93 94
94 // Backend implementation of RenderViewHostDelegateView. 95 // Backend implementation of RenderViewHostDelegateView.
95 virtual void ShowContextMenu(const ContextMenuParams& params, 96 virtual void ShowContextMenu(const ContextMenuParams& params,
96 ContextMenuSourceType type) OVERRIDE; 97 ContextMenuSourceType type) OVERRIDE;
97 virtual void ShowPopupMenu(const gfx::Rect& bounds, 98 virtual void ShowPopupMenu(const gfx::Rect& bounds,
98 int item_height, 99 int item_height,
99 double item_font_size, 100 double item_font_size,
100 int selected_item, 101 int selected_item,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Whether to allow overlapping views. 135 // Whether to allow overlapping views.
135 bool allow_overlapping_views_; 136 bool allow_overlapping_views_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 138 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
138 }; 139 };
139 140
140 } // namespace content 141 } // namespace content
141 142
142 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 143 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698