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

Side by Side Diff: chrome/browser/ui/panels/panel.h

Issue 8704005: Add autoresize capability to chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest update Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // NULL might be returned if the tab has not been added. 240 // NULL might be returned if the tab has not been added.
241 RenderViewHost* GetRenderViewHost() const; 241 RenderViewHost* GetRenderViewHost() const;
242 242
243 // Configures the tab contents for auto resize, including configurations 243 // Configures the tab contents for auto resize, including configurations
244 // on the renderer and detecting renderer changes. 244 // on the renderer and detecting renderer changes.
245 void EnableTabContentsAutoResize(TabContents* tab_contents); 245 void EnableTabContentsAutoResize(TabContents* tab_contents);
246 246
247 // Configures the renderer for auto resize. 247 // Configures the renderer for auto resize.
248 void EnableRendererAutoResize(RenderViewHost* render_view_host); 248 void EnableRendererAutoResize(RenderViewHost* render_view_host);
249 249
250 // Requests RenderViewHost not to show the scrollbars till |max_size_| since
251 // the panel can grow to |max_size_|.
252 void RequestRenderViewHostToDisableScrollbars(
253 RenderViewHost* render_view_host);
254
255 Browser* browser_; // Weak, owned by native panel. 250 Browser* browser_; // Weak, owned by native panel.
256 251
257 bool initialized_; 252 bool initialized_;
258 253
259 // Stores the full size of the panel so we can restore it after it's 254 // Stores the full size of the panel so we can restore it after it's
260 // been minimized. 255 // been minimized.
261 gfx::Size restored_size_; 256 gfx::Size restored_size_;
262 257
263 // This is the minimum size that the panel can shrink to. 258 // This is the minimum size that the panel can shrink to.
264 gfx::Size min_size_; 259 gfx::Size min_size_;
(...skipping 10 matching lines...) Expand all
275 NativePanel* native_panel_; // Weak, owns us. 270 NativePanel* native_panel_; // Weak, owns us.
276 271
277 ExpansionState expansion_state_; 272 ExpansionState expansion_state_;
278 273
279 content::NotificationRegistrar registrar_; 274 content::NotificationRegistrar registrar_;
280 275
281 DISALLOW_COPY_AND_ASSIGN(Panel); 276 DISALLOW_COPY_AND_ASSIGN(Panel);
282 }; 277 };
283 278
284 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 279 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.cc » ('j') | content/browser/renderer_host/render_view_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698