summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/frame
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 19:24:48 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 19:24:48 +0000
commita8a6012b1346f64cec04ce8f4ca592cdae77ec2d (patch)
tree43fea13d2183846b977dedd9606335f7f4283d94 /chrome/browser/chromeos/frame
parent6faf7b1cc2d797140afd3df1211685307488cfcf (diff)
downloadchromium_src-a8a6012b1346f64cec04ce8f4ca592cdae77ec2d.zip
chromium_src-a8a6012b1346f64cec04ce8f4ca592cdae77ec2d.tar.gz
chromium_src-a8a6012b1346f64cec04ce8f4ca592cdae77ec2d.tar.bz2
Consolidate more into Window:
- inactive rendering disabling tracking - window icon updating BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6650031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/frame')
-rw-r--r--chrome/browser/chromeos/frame/browser_frame_chromeos.cc2
-rw-r--r--chrome/browser/chromeos/frame/bubble_frame_view.cc3
-rw-r--r--chrome/browser/chromeos/frame/bubble_frame_view.h26
3 files changed, 18 insertions, 13 deletions
diff --git a/chrome/browser/chromeos/frame/browser_frame_chromeos.cc b/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
index b32d5fb..2224068 100644
--- a/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
+++ b/chrome/browser/chromeos/frame/browser_frame_chromeos.cc
@@ -38,7 +38,7 @@ void BrowserFrameChromeos::InitBrowserFrame() {
if (!browser_view()->IsBrowserTypePopup()) {
// On chromeos we want windows to always render as active.
- non_client_view()->DisableInactiveRendering(true);
+ DisableInactiveRendering();
}
}
diff --git a/chrome/browser/chromeos/frame/bubble_frame_view.cc b/chrome/browser/chromeos/frame/bubble_frame_view.cc
index d49d001..37acb39 100644
--- a/chrome/browser/chromeos/frame/bubble_frame_view.cc
+++ b/chrome/browser/chromeos/frame/bubble_frame_view.cc
@@ -137,6 +137,9 @@ void BubbleFrameView::EnableClose(bool enable) {
void BubbleFrameView::ResetWindowControls() {
}
+void BubbleFrameView::UpdateWindowIcon() {
+}
+
gfx::Insets BubbleFrameView::GetInsets() const {
gfx::Insets border_insets;
border()->GetInsets(&border_insets);
diff --git a/chrome/browser/chromeos/frame/bubble_frame_view.h b/chrome/browser/chromeos/frame/bubble_frame_view.h
index 1c017f3..1aa72d5 100644
--- a/chrome/browser/chromeos/frame/bubble_frame_view.h
+++ b/chrome/browser/chromeos/frame/bubble_frame_view.h
@@ -34,23 +34,25 @@ class BubbleFrameView : public views::NonClientFrameView,
virtual ~BubbleFrameView();
// Overridden from views::NonClientFrameView:
- virtual gfx::Rect GetBoundsForClientView() const;
+ virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
virtual gfx::Rect GetWindowBoundsForClientBounds(
- const gfx::Rect& client_bounds) const;
- virtual int NonClientHitTest(const gfx::Point& point);
- virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
- virtual void EnableClose(bool enable);
- virtual void ResetWindowControls();
+ const gfx::Rect& client_bounds) const OVERRIDE;
+ virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
+ virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
+ OVERRIDE;
+ virtual void EnableClose(bool enable) OVERRIDE;
+ virtual void ResetWindowControls() OVERRIDE;
+ virtual void UpdateWindowIcon() OVERRIDE;
// View overrides:
- virtual gfx::Insets GetInsets() const;
- virtual gfx::Size GetPreferredSize();
- virtual void Layout();
- virtual void OnPaint(gfx::Canvas* canvas);
+ virtual gfx::Insets GetInsets() const OVERRIDE;
+ virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual void Layout() OVERRIDE;
+ virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
// Overridden from views::ButtonListener:
- virtual void ButtonPressed(views::Button* sender,
- const views::Event& event);
+ virtual void ButtonPressed(views::Button* sender, const views::Event& event)
+ OVERRIDE;
void StartThrobber();
void StopThrobber();