<commit_before>// Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#pragma once

#include <map>

#include "content/browser/renderer_host/render_widget_host_view.h"
#include "content/common/content_export.h"
#include "ui/aura/window_delegate.h"
#include "ui/gfx/compositor/compositor_observer.h"
#include "webkit/glue/webcursor.h"

namespace WebKit {
class WebTouchEvent;
}

#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
class AcceleratedSurfaceContainerLinux;
#endif

class CONTENT_EXPORT RenderWidgetHostViewAura
    : NON_EXPORTED_BASE(public RenderWidgetHostView),
#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
      public ui::CompositorObserver,
#endif
      public aura::WindowDelegate {
 public:
  explicit RenderWidgetHostViewAura(RenderWidgetHost* host);
  virtual ~RenderWidgetHostViewAura();

  // TODO(derat): Add an abstract RenderWidgetHostView::InitAsChild() method and
  // update callers: http://crbug.com/102450.
  void InitAsChild();

  // Overridden from RenderWidgetHostView:
  virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
                           const gfx::Rect& pos) OVERRIDE;
  virtual void InitAsFullscreen(
      RenderWidgetHostView* reference_host_view) OVERRIDE;<commit_msg>aura: #include a header used. This caused a compilation error from r111936.<commit_after>// Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
#pragma once

#include <map>

#include "content/browser/renderer_host/render_widget_host_view.h"
#include "content/common/content_export.h"
#include "ui/aura/window_delegate.h"
#include "ui/gfx/compositor/compositor_observer.h"
#include "webkit/glue/webcursor.h"

#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#endif

namespace WebKit {
class WebTouchEvent;
}

#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
class AcceleratedSurfaceContainerLinux;
#endif

class CONTENT_EXPORT RenderWidgetHostViewAura
    : NON_EXPORTED_BASE(public RenderWidgetHostView),
#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
      public ui::CompositorObserver,
#endif
      public aura::WindowDelegate {
 public:
  explicit RenderWidgetHostViewAura(RenderWidgetHost* host);
  virtual ~RenderWidgetHostViewAura();

  // TODO(derat): Add an abstract RenderWidgetHostView::InitAsChild() method and
  // update callers: http://crbug.com/102450.
  void InitAsChild();

  // Overridden from RenderWidgetHostView:
  virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
                           const gfx::Rect& pos) OVERRIDE;
  virtual void InitAsFullscreen(
      RenderWidgetHostView* reference_host_view) OVERRIDE;
{'fraction_non_alphanumeric': 0.08266836897542292, 'fraction_numerical': 0.008298755186721992, 'mean_word_length': 5.6257928118393234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4247621', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1034, 'n_words': 223}