diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
commit | 1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf (patch) | |
tree | b78be07dbada3ac0f6d2435558e4a6aaba198ffc /chrome/views/view_container.h | |
parent | ea15e98a9353494df754a11fb49f0e4b8c0d4789 (diff) | |
download | chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.zip chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.gz chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.bz2 |
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
Diffstat (limited to 'chrome/views/view_container.h')
-rw-r--r-- | chrome/views/view_container.h | 24 |
1 files changed, 14 insertions, 10 deletions
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 <atlbase.h> -#include <atlapp.h> -#include <atlmisc.h> +// TODO(maruel): Remove once HWND is abstracted. +#include <windows.h> + +// 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_ |