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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
11 #endif 11 #endif
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "app/surface/transport_dib.h" 16 #include "app/surface/transport_dib.h"
17 #include "gfx/native_widget_types.h" 17 #include "gfx/native_widget_types.h"
18 #include "gfx/rect.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 19 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h"
20 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" 21 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h"
21 22
22 namespace gfx { 23 namespace gfx {
23 class Rect; 24 class Rect;
24 class Size; 25 class Size;
25 } 26 }
26 namespace IPC { 27 namespace IPC {
27 class Message; 28 class Message;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // Returns true if the native view, |native_view|, is contained within in the 258 // Returns true if the native view, |native_view|, is contained within in the
258 // widget associated with this RenderWidgetHostView. 259 // widget associated with this RenderWidgetHostView.
259 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; 260 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0;
260 261
261 virtual void UpdateAccessibilityTree( 262 virtual void UpdateAccessibilityTree(
262 const webkit_glue::WebAccessibility& tree) { } 263 const webkit_glue::WebAccessibility& tree) { }
263 virtual void OnAccessibilityNotifications( 264 virtual void OnAccessibilityNotifications(
264 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { 265 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) {
265 } 266 }
266 267
268 gfx::Rect reserved_contents_rect() const {
269 return reserved_rect_;
270 }
271 void set_reserved_contents_rect(const gfx::Rect& reserved_rect) {
272 reserved_rect_ = reserved_rect;
273 }
274
267 protected: 275 protected:
268 // Interface class only, do not construct. 276 // Interface class only, do not construct.
269 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} 277 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {}
270 278
271 // Whether this view is a popup and what kind of popup it is (select, 279 // Whether this view is a popup and what kind of popup it is (select,
272 // autofill...). 280 // autofill...).
273 WebKit::WebPopupType popup_type_; 281 WebKit::WebPopupType popup_type_;
274 282
275 // A custom background to paint behind the web content. This will be tiled 283 // A custom background to paint behind the web content. This will be tiled
276 // horizontally. Can be null, in which case we fall back to painting white. 284 // horizontally. Can be null, in which case we fall back to painting white.
277 SkBitmap background_; 285 SkBitmap background_;
278 286
287 // The current reserved area in view coordinates where contents should not be
288 // rendered to draw the resize corner, sidebar mini tabs etc.
289 gfx::Rect reserved_rect_;
290
279 private: 291 private:
280 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 292 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
281 }; 293 };
282 294
283 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 295 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698