From 1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf Mon Sep 17 00:00:00 2001 From: "maruel@google.com" Date: Fri, 15 Aug 2008 12:27:03 +0000 Subject: Large patch set (159 files total) to cleanup the includes. - Slightly reduce the size of the generated .lib files ~3%. - Reduce the number of implicit and explicit atl and windows includes. hooray! - Help incremental build by reducing the number of unnecessary included files. - Split some template class in two, one base class for the common code and the specialization that inherits from the base class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/view_container.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'chrome/views/view_container.h') diff --git a/chrome/views/view_container.h b/chrome/views/view_container.h index daf106c..65269bb 100644 --- a/chrome/views/view_container.h +++ b/chrome/views/view_container.h @@ -27,12 +27,17 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#ifndef CHROME_VIEWS_VIEW_CONTAINER_H__ -#define CHROME_VIEWS_VIEW_CONTAINER_H__ +#ifndef CHROME_VIEWS_VIEW_CONTAINER_H_ +#define CHROME_VIEWS_VIEW_CONTAINER_H_ -#include -#include -#include +// TODO(maruel): Remove once HWND is abstracted. +#include + +// TODO(maruel): Remove once gfx::Rect is used instead. +namespace WTL { +class CRect; +} +using WTL::CRect; namespace ChromeViews { @@ -59,6 +64,7 @@ class Accelerator; class ViewContainer { public: + virtual ~ViewContainer() { } // Returns the bounds of this container in the screen coordinate system. // If the receiving view container is a frame which is larger than its @@ -96,11 +102,9 @@ class ViewContainer { // Returns the accelerator given a command id. Returns false if there is // no accelerator associated with a given id, which is a common condition. virtual bool GetAccelerator(int cmd_id, - ChromeViews::Accelerator* accelerator) = 0; + Accelerator* accelerator) = 0; }; +} // namespace ChromeViews - -} - -#endif // CHROME_VIEWS_VIEW_CONTAINER_H__ +#endif // CHROME_VIEWS_VIEW_CONTAINER_H_ -- cgit v1.1