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

Side by Side Diff: extensions/browser/app_window/app_window_contents.h

Issue 2929493003: Move handling of DraggableRegionsChanged notification from "view" to "frame". (Closed)
Patch Set: Addressed CR feedback from rdevlin.cronin@. Created 3 years, 6 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 27 matching lines...) Expand all
38 const GURL& url) override; 38 const GURL& url) override;
39 void LoadContents(int32_t creator_process_id) override; 39 void LoadContents(int32_t creator_process_id) override;
40 void NativeWindowChanged(NativeAppWindow* native_app_window) override; 40 void NativeWindowChanged(NativeAppWindow* native_app_window) override;
41 void NativeWindowClosed() override; 41 void NativeWindowClosed() override;
42 void OnWindowReady() override; 42 void OnWindowReady() override;
43 content::WebContents* GetWebContents() const override; 43 content::WebContents* GetWebContents() const override;
44 WindowController* GetWindowController() const override; 44 WindowController* GetWindowController() const override;
45 45
46 private: 46 private:
47 // content::WebContentsObserver 47 // content::WebContentsObserver
48 bool OnMessageReceived(const IPC::Message& message) override; 48 bool OnMessageReceived(const IPC::Message& message,
49 content::RenderFrameHost* sender) override;
49 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; 50 void ReadyToCommitNavigation(content::NavigationHandle* handle) override;
50 51
51 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); 52 void UpdateDraggableRegions(content::RenderFrameHost* sender,
53 const std::vector<DraggableRegion>& regions);
52 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); 54 void SuspendRenderFrameHost(content::RenderFrameHost* rfh);
53 55
54 AppWindow* host_; // This class is owned by |host_| 56 AppWindow* host_; // This class is owned by |host_|
55 GURL url_; 57 GURL url_;
56 std::unique_ptr<content::WebContents> web_contents_; 58 std::unique_ptr<content::WebContents> web_contents_;
57 bool is_blocking_requests_; 59 bool is_blocking_requests_;
58 bool is_window_ready_; 60 bool is_window_ready_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); 62 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl);
61 }; 63 };
62 64
63 } // namespace extensions 65 } // namespace extensions
64 66
65 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ 67 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | extensions/browser/app_window/app_window_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698