summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/opaque_frame.cc
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 22:11:49 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 22:11:49 +0000
commit65bd67d12cbbf73a0c7842750bd30639ddad2306 (patch)
treec498514b6a1a3d3e50b62498a09fd642cb9aa139 /chrome/browser/views/frame/opaque_frame.cc
parentc62b56cde3acdd5d16896795739d7ce894c6e1a7 (diff)
downloadchromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.zip
chromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.tar.gz
chromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.tar.bz2
Make the AeroGlassFrame better:
- client edge rendering is now pixel-perfect for all BrowserTypes. - fix NCCALCSIZE handling that was making our top-right corner less than perfectly round - make system menu work - remove some unnecessary functions B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/opaque_frame.cc')
-rw-r--r--chrome/browser/views/frame/opaque_frame.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/chrome/browser/views/frame/opaque_frame.cc b/chrome/browser/views/frame/opaque_frame.cc
index 2e47c18..e9d840b 100644
--- a/chrome/browser/views/frame/opaque_frame.cc
+++ b/chrome/browser/views/frame/opaque_frame.cc
@@ -23,22 +23,6 @@ OpaqueFrame::OpaqueFrame(BrowserView2* browser_view)
OpaqueFrame::~OpaqueFrame() {
}
-bool OpaqueFrame::IsTabStripVisible() const {
- return browser_view_->IsTabStripVisible();
-}
-
-bool OpaqueFrame::IsToolbarVisible() const {
- return browser_view_->IsToolbarVisible();
-}
-
-gfx::Rect OpaqueFrame::GetToolbarBounds() const {
- return browser_view_->GetToolbarBounds();
-}
-
-gfx::Rect OpaqueFrame::GetContentsBounds() const {
- return browser_view_->GetClientAreaBounds();
-}
-
///////////////////////////////////////////////////////////////////////////////
// OpaqueFrame, BrowserFrame implementation:
@@ -92,8 +76,7 @@ void OpaqueFrame::OnExitMenuLoop(bool is_track_popup_menu) {
void OpaqueFrame::OnInitMenuPopup(HMENU menu, UINT position,
BOOL is_system_menu) {
- Menu* menu_obj = new Menu(menu);
- browser_view_->PrepareToRunSystemMenu(menu_obj);
+ browser_view_->PrepareToRunSystemMenu(menu);
}
LRESULT OpaqueFrame::OnMouseActivate(HWND window, UINT hittest_code,