Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// Copyright (c) 2010 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.

#include "chrome/browser/chromeos/frame/browser_frame_chromeos.h"

#include "chrome/browser/chromeos/frame/normal_browser_frame_view.h"
#include "chrome/browser/views/frame/browser_view.h"

// static (Factory method.)
BrowserFrame* BrowserFrame::Create(BrowserView* browser_view,
                                   Profile* profile) {
  chromeos::BrowserFrameChromeos* frame =
      new chromeos::BrowserFrameChromeos(browser_view, profile);
  return frame;

namespace chromeos {

    BrowserView* browser_view, Profile* profile)
    : BrowserFrameGtk(browser_view, profile) {

BrowserFrameChromeos::~BrowserFrameChromeos() {

void BrowserFrameChromeos::Init() {
  // Excludes a browser intance that requires icon/title. This is typically true
  // for dev tools and javascript console.
  // TODO(oshima): handle app panels. This currently uses the default
  // implementation, which opens Chrome's app panel instead of
  // ChromeOS's panel.
  if (!IsPanel() &&
      !browser_view()->ShouldShowWindowIcon() &&
      !browser_view()->ShouldShowWindowTitle()) {
    set_browser_frame_view(new NormalBrowserFrameView(this, browser_view()));

bool BrowserFrameChromeos::IsMaximized() const {
  return !IsPanel() || WindowGtk::IsMaximized();

bool BrowserFrameChromeos::IsPanel() const {
  return browser_view()->IsBrowserTypePanel() ||

}  // namespace chromeos

Generated by  Doxygen 1.6.0   Back to index