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

Side by Side Diff: content/browser/tab_contents/tab_contents_view.h

Issue 8491062: Fixes GetContainerBounds in tab_contents_view_mac.mm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes as requested Created 9 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Returns the native widget with the main content of the tab (i.e. the main 42 // Returns the native widget with the main content of the tab (i.e. the main
43 // render view host, though there may be many popups in the tab as children of 43 // render view host, though there may be many popups in the tab as children of
44 // the container). 44 // the container).
45 virtual gfx::NativeView GetContentNativeView() const = 0; 45 virtual gfx::NativeView GetContentNativeView() const = 0;
46 46
47 // Returns the outermost native view. This will be used as the parent for 47 // Returns the outermost native view. This will be used as the parent for
48 // dialog boxes. 48 // dialog boxes.
49 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; 49 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0;
50 50
51 // Computes the rectangle for the native widget that contains the contents of 51 // Computes the rectangle for the native widget that contains the contents of
52 // the tab relative to its parent. 52 // the tab in the screen coordinate system.
53 virtual void GetContainerBounds(gfx::Rect *out) const = 0; 53 virtual void GetContainerBounds(gfx::Rect *out) const = 0;
54 54
55 // Helper function for GetContainerBounds. Most callers just want to know the 55 // Helper function for GetContainerBounds. Most callers just want to know the
56 // size, and this makes it more clear. 56 // size, and this makes it more clear.
57 gfx::Size GetContainerSize() const { 57 gfx::Size GetContainerSize() const {
58 gfx::Rect rc; 58 gfx::Rect rc;
59 GetContainerBounds(&rc); 59 GetContainerBounds(&rc);
60 return gfx::Size(rc.width(), rc.height()); 60 return gfx::Size(rc.width(), rc.height());
61 } 61 }
62 62
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void RemoveOverlayView() = 0; 129 virtual void RemoveOverlayView() = 0;
130 130
131 protected: 131 protected:
132 TabContentsView(); // Abstract interface. 132 TabContentsView(); // Abstract interface.
133 133
134 private: 134 private:
135 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 135 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
136 }; 136 };
137 137
138 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 138 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698