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

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

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. Created 4 years, 4 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
10 #include "content/browser/web_contents/web_contents_view.h" 10 #include "content/browser/web_contents/web_contents_view.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 WebContentsViewChildFrame(WebContentsImpl* web_contents, 22 WebContentsViewChildFrame(WebContentsImpl* web_contents,
23 WebContentsViewDelegate* delegate, 23 WebContentsViewDelegate* delegate,
24 RenderViewHostDelegateView** delegate_view); 24 RenderViewHostDelegateView** delegate_view);
25 ~WebContentsViewChildFrame() override; 25 ~WebContentsViewChildFrame() override;
26 26
27 // WebContentsView implementation -------------------------------------------- 27 // WebContentsView implementation --------------------------------------------
28 gfx::NativeView GetNativeView() const override; 28 gfx::NativeView GetNativeView() const override;
29 gfx::NativeView GetContentNativeView() const override; 29 gfx::NativeView GetContentNativeView() const override;
30 gfx::NativeWindow GetTopLevelNativeWindow() const override; 30 gfx::NativeWindow GetTopLevelNativeWindow() const override;
31 void GetScreenInfo(blink::WebScreenInfo* web_screen_info) const override;
31 void GetContainerBounds(gfx::Rect* out) const override; 32 void GetContainerBounds(gfx::Rect* out) const override;
32 void SizeContents(const gfx::Size& size) override; 33 void SizeContents(const gfx::Size& size) override;
33 void Focus() override; 34 void Focus() override;
34 void SetInitialFocus() override; 35 void SetInitialFocus() override;
35 void StoreFocus() override; 36 void StoreFocus() override;
36 void RestoreFocus() override; 37 void RestoreFocus() override;
37 DropData* GetDropData() const override; 38 DropData* GetDropData() const override;
38 gfx::Rect GetViewBounds() const override; 39 gfx::Rect GetViewBounds() const override;
39 void CreateView(const gfx::Size& initial_size, 40 void CreateView(const gfx::Size& initial_size,
40 gfx::NativeView context) override; 41 gfx::NativeView context) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 // The delegate ownership is passed to WebContentsView. 77 // The delegate ownership is passed to WebContentsView.
77 std::unique_ptr<WebContentsViewDelegate> delegate_; 78 std::unique_ptr<WebContentsViewDelegate> delegate_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(WebContentsViewChildFrame); 80 DISALLOW_COPY_AND_ASSIGN(WebContentsViewChildFrame);
80 }; 81 };
81 82
82 } // namespace content 83 } // namespace content
83 84
84 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_ 85 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698