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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.h

Issue 1133003003: Fix copying from interstitial pages on OSX by going through the RenderWidgetHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Nasko's comments. Created 5 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DONT_PROCEED_ACTION // "Don't proceed" was selected. 49 DONT_PROCEED_ACTION // "Don't proceed" was selected.
50 }; 50 };
51 51
52 InterstitialPageImpl(WebContents* web_contents, 52 InterstitialPageImpl(WebContents* web_contents,
53 RenderWidgetHostDelegate* render_widget_host_delegate, 53 RenderWidgetHostDelegate* render_widget_host_delegate,
54 bool new_navigation, 54 bool new_navigation,
55 const GURL& url, 55 const GURL& url,
56 InterstitialPageDelegate* delegate); 56 InterstitialPageDelegate* delegate);
57 ~InterstitialPageImpl() override; 57 ~InterstitialPageImpl() override;
58 58
59 // RenderWidgetHostDelegate implementation:
60 void Undo() override;
61 void Redo() override;
62 void Cut() override;
63 void Copy() override;
64 void CopyToFindPboard() override;
65 void Paste() override;
66 void PasteAndMatchStyle() override;
67 void SelectAll() override;
68
59 // InterstitialPage implementation: 69 // InterstitialPage implementation:
60 void Show() override; 70 void Show() override;
61 void Hide() override; 71 void Hide() override;
62 void DontProceed() override; 72 void DontProceed() override;
63 void Proceed() override; 73 void Proceed() override;
64 RenderFrameHost* GetMainFrame() const override; 74 RenderFrameHost* GetMainFrame() const override;
65 InterstitialPageDelegate* GetDelegateForTesting() override; 75 InterstitialPageDelegate* GetDelegateForTesting() override;
66 void DontCreateViewForTesting() override; 76 void DontCreateViewForTesting() override;
67 void SetSize(const gfx::Size& size) override; 77 void SetSize(const gfx::Size& size) override;
68 void Focus() override; 78 void Focus() override;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; 297 scoped_refptr<SessionStorageNamespace> session_storage_namespace_;
288 298
289 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; 299 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_;
290 300
291 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 301 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
292 }; 302 };
293 303
294 } // namespace content 304 } // namespace content
295 305
296 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 306 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698