 Chromium Code Reviews
 Chromium Code Reviews Issue 6692001:
  Add in DOMBrowserView and Frame related classes  (Closed) 
  Base URL: http://git.chromium.org/git/chromium.git@trunk
    
  
    Issue 6692001:
  Add in DOMBrowserView and Frame related classes  (Closed) 
  Base URL: http://git.chromium.org/git/chromium.git@trunk| OLD | NEW | 
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_BROWSER_DOM_BROWSER_VIEW_LAYOUT_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_BROWSER_DOM_BROWSER_VIEW_LAYOUT_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "chrome/browser/chromeos/webui/login/browser/dom_browser_view.h" | |
| 11 #include "chrome/browser/chromeos/status/status_area_host.h" | |
| 
oshima
2011/03/16 21:10:25
These two includes can be replaced with forward de
 
rharrison
2011/03/17 17:00:50
Done.
 | |
| 12 #include "chrome/browser/ui/views/frame/browser_view_layout.h" | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 // LayoutManager for DOMBrowserView, which layouts extra components such as | |
| 17 // the status views | |
| 
Nikita (slow)
2011/03/16 21:33:45
nit: dot at the end.
 
rharrison
2011/03/17 17:00:50
Done.
 | |
| 18 class DOMBrowserViewLayout : public ::BrowserViewLayout { | |
| 19 public: | |
| 20 DOMBrowserViewLayout() : ::BrowserViewLayout() {} | |
| 
Nikita (slow)
2011/03/16 21:33:45
Move ctor body into .cc file.
 
rharrison
2011/03/17 17:00:50
Done.
 | |
| 21 virtual ~DOMBrowserViewLayout() {} | |
| 
Nikita (slow)
2011/03/16 21:33:45
Move body to .cc file.
 
rharrison
2011/03/17 17:00:50
Done.
 | |
| 22 | |
| 23 // BrowserViewLayout overrides: | |
| 24 virtual void Installed(views::View* host) OVERRIDE; | |
| 25 virtual void ViewAdded(views::View* host, | |
| 26 views::View* view) OVERRIDE; | |
| 27 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; | |
| 28 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | |
| 29 | |
| 30 protected: | |
| 31 // BrowserViewLayout overrides: | |
| 32 virtual int LayoutTabStrip() OVERRIDE; | |
| 33 virtual int LayoutToolbar(int top) OVERRIDE; | |
| 34 virtual int LayoutBookmarkAndInfoBars(int top) OVERRIDE; | |
| 35 | |
| 36 private: | |
| 37 DOMBrowserView* GetDOMBrowserView(); | |
| 38 chromeos::StatusAreaView* status_area_; | |
| 39 | |
| 40 bool IsPointInViewsInTitleArea(const gfx::Point& point) const; | |
| 41 int LayoutTitlebarComponents(const gfx::Rect& bounds); | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(DOMBrowserViewLayout); | |
| 44 }; | |
| 45 | |
| 46 } // namespace chromeos | |
| 47 | |
| 48 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_BROWSER_DOM_BROWSER_VIEW_LAYOUT_H _ | |
| OLD | NEW |