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

native_tab_contents_container_win.h

// 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_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H_
#define CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H_

#include "chrome/browser/views/tab_contents/native_tab_contents_container.h"
#include "views/controls/native/native_view_host.h"

class NativeTabContentsContainerWin : public NativeTabContentsContainer,
                                      public views::NativeViewHost {
 public:
  explicit NativeTabContentsContainerWin(TabContentsContainer* container);
  virtual ~NativeTabContentsContainerWin();

  // Overridden from NativeTabContentsContainer:
  virtual void AttachContents(TabContents* contents);
  virtual void DetachContents(TabContents* contents);
  virtual void SetFastResize(bool fast_resize);
  virtual void RenderViewHostChanged(RenderViewHost* old_host,
                                     RenderViewHost* new_host);
  virtual void TabContentsFocused(TabContents* tab_contents);
  virtual views::View* GetView();

  // Overridden from views::View:
  virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
  virtual bool IsFocusable() const;
  virtual void Focus();
  virtual void RequestFocus();
  virtual void AboutToRequestFocusFromTabTraversal(bool reverse);
  virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);

 private:
  TabContentsContainer* container_;

  DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerWin);
};

#endif  // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H_

Generated by  Doxygen 1.6.0   Back to index