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

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 9702068: Move extension pop-ups and notifications to the new auto-resize code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small update Created 8 years, 9 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bool IsRenderViewLive() const; 134 bool IsRenderViewLive() const;
135 135
136 // Prepares to initializes our RenderViewHost by creating its RenderView and 136 // Prepares to initializes our RenderViewHost by creating its RenderView and
137 // navigating to this host's url. Uses host_view for the RenderViewHost's view 137 // navigating to this host's url. Uses host_view for the RenderViewHost's view
138 // (can be NULL). This happens delayed to avoid locking the UI. 138 // (can be NULL). This happens delayed to avoid locking the UI.
139 void CreateRenderViewSoon(); 139 void CreateRenderViewSoon();
140 140
141 // Insert a default style sheet for Extension Infobars. 141 // Insert a default style sheet for Extension Infobars.
142 void InsertInfobarCSS(); 142 void InsertInfobarCSS();
143 143
144 // Tell the renderer not to draw scrollbars on windows smaller than
145 // |size_limit| in both width and height.
146 void DisableScrollbarsForSmallWindows(const gfx::Size& size_limit);
147
148 // content::WebContentsObserver 144 // content::WebContentsObserver
149 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 145 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
150 virtual void RenderViewCreated( 146 virtual void RenderViewCreated(
151 content::RenderViewHost* render_view_host) OVERRIDE; 147 content::RenderViewHost* render_view_host) OVERRIDE;
152 virtual void RenderViewDeleted( 148 virtual void RenderViewDeleted(
153 content::RenderViewHost* render_view_host) OVERRIDE; 149 content::RenderViewHost* render_view_host) OVERRIDE;
154 virtual void RenderViewReady() OVERRIDE; 150 virtual void RenderViewReady() OVERRIDE;
155 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 151 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
156 virtual void DocumentAvailableInMainFrame() OVERRIDE; 152 virtual void DocumentAvailableInMainFrame() OVERRIDE;
157 virtual void DocumentLoadedInFrame(int64 frame_id) OVERRIDE; 153 virtual void DocumentLoadedInFrame(int64 frame_id) OVERRIDE;
158 virtual void DidStopLoading() OVERRIDE; 154 virtual void DidStopLoading() OVERRIDE;
159 155
160 // content::WebContentsDelegate 156 // content::WebContentsDelegate
161 virtual content::WebContents* OpenURLFromTab( 157 virtual content::WebContents* OpenURLFromTab(
162 content::WebContents* source, 158 content::WebContents* source,
163 const content::OpenURLParams& params) OVERRIDE; 159 const content::OpenURLParams& params) OVERRIDE;
164 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 160 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
165 bool* is_keyboard_shortcut) OVERRIDE; 161 bool* is_keyboard_shortcut) OVERRIDE;
166 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) 162 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event)
167 OVERRIDE; 163 OVERRIDE;
168 virtual void UpdatePreferredSize(content::WebContents* source, 164 virtual void ResizeDueToAutoResize(content::WebContents* source,
169 const gfx::Size& pref_size) OVERRIDE; 165 const gfx::Size& new_size) OVERRIDE;
170 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator() 166 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator()
171 OVERRIDE; 167 OVERRIDE;
172 virtual void RunFileChooser( 168 virtual void RunFileChooser(
173 content::WebContents* tab, 169 content::WebContents* tab,
174 const content::FileChooserParams& params) OVERRIDE; 170 const content::FileChooserParams& params) OVERRIDE;
175 virtual void AddNewContents(content::WebContents* source, 171 virtual void AddNewContents(content::WebContents* source,
176 content::WebContents* new_contents, 172 content::WebContents* new_contents,
177 WindowOpenDisposition disposition, 173 WindowOpenDisposition disposition,
178 const gfx::Rect& initial_pos, 174 const gfx::Rect& initial_pos,
179 bool user_gesture) OVERRIDE; 175 bool user_gesture) OVERRIDE;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 PerfTimer since_created_; 263 PerfTimer since_created_;
268 264
269 // A unique ID associated with each call to ShouldClose. This allows us 265 // A unique ID associated with each call to ShouldClose. This allows us
270 // to differentiate which ShouldClose message the renderer is responding to. 266 // to differentiate which ShouldClose message the renderer is responding to.
271 int close_sequence_id_; 267 int close_sequence_id_;
272 268
273 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 269 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
274 }; 270 };
275 271
276 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 272 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | content/browser/renderer_host/render_widget_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698