summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_non_client_frame_view.h
blob: 63f4044db2926e624050d24dca06d29b3fa7f76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
#define CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_

#include "views/window/non_client_view.h"

class BaseTabStrip;

// A specialization of the NonClientFrameView object that provides additional
// Browser-specific methods.
class BrowserNonClientFrameView : public views::NonClientFrameView {
 public:
  BrowserNonClientFrameView() : NonClientFrameView() {}
  virtual ~BrowserNonClientFrameView() {}

  // Returns the bounds within which the TabStrip should be laid out.
  virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0;

  // Updates the throbber.
  virtual void UpdateThrobber(bool running) = 0;

  // Paints the shadow edge along the side of the side tabstrip. The BrowserView
  // calls this method _after_ the TabStrip has painted itself so the shadow is
  // rendered above the tabs.
  virtual void PaintTabStripShadow(gfx::Canvas* canvas) = 0;
};

#endif  // CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_