diff options
author | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-27 19:32:26 +0000 |
---|---|---|
committer | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-27 19:32:26 +0000 |
commit | a659114b2a7b20b097e4046f79a07622eb3f7cd3 (patch) | |
tree | db971bfe360fd805480840523ad83a28fc64a8af /content/shell/browser/shell_platform_data_aura.h | |
parent | abc501eda14b3f1049195e0ccee0dac13d9b7a80 (diff) | |
download | chromium_src-a659114b2a7b20b097e4046f79a07622eb3f7cd3.zip chromium_src-a659114b2a7b20b097e4046f79a07622eb3f7cd3.tar.gz chromium_src-a659114b2a7b20b097e4046f79a07622eb3f7cd3.tar.bz2 |
Re-land r246921: "Allow running content-shell headless with --dump-render-tree."
This change reverts r247148 and re-lands r246921. It's unclear if there
really is something wrong with this patch, and the crashes in
run-webkit-tests were addressed in Blink r165816.
TBR=jochen@chromium.org, sadrul@chromium.org
BUG=316712
Review URL: https://codereview.chromium.org/132903012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/browser/shell_platform_data_aura.h')
-rw-r--r-- | content/shell/browser/shell_platform_data_aura.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/content/shell/browser/shell_platform_data_aura.h b/content/shell/browser/shell_platform_data_aura.h new file mode 100644 index 0000000..9b7ea2b --- /dev/null +++ b/content/shell/browser/shell_platform_data_aura.h @@ -0,0 +1,53 @@ +// Copyright 2014 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_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ +#define CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ + +#include "base/memory/scoped_ptr.h" + +namespace aura { +namespace client { +class DefaultActivationClient; +class DefaultCaptureClient; +class FocusClient; +class WindowTreeClient; +} +class RootWindow; +} + +namespace gfx { +class Size; +} + +namespace ui { +class EventHandler; +} + +namespace content { + +class ShellPlatformDataAura { + public: + explicit ShellPlatformDataAura(const gfx::Size& initial_size); + ~ShellPlatformDataAura(); + + void ShowWindow(); + void ResizeWindow(const gfx::Size& size); + + aura::RootWindow* window() { return root_window_.get(); } + + private: + scoped_ptr<aura::RootWindow> root_window_; + scoped_ptr<aura::client::FocusClient> focus_client_; + scoped_ptr<aura::client::DefaultActivationClient> activation_client_; + scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; + scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; + scoped_ptr<ui::EventHandler> ime_filter_; + + DISALLOW_COPY_AND_ASSIGN(ShellPlatformDataAura); +}; + +} // namespace content + +#endif // CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |