Commit c6a454ec authored by oshima@chromium.org's avatar oshima@chromium.org

Fix silly mistakes

 * The original CL was totally broken. sorry about that.
  *add missing ui_resources.

BUG=None
TBR=sadrul@chromium.org

Review URL: https://codereview.chromium.org/401613004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283774 0039d316-1c4b-4281-b951-d872f2087c98
parent 1a381b32
......@@ -14,6 +14,7 @@
'../../apps/shell/app_shell.gyp:app_shell_pak',
'../../ash/ash_resources.gyp:ash_resources',
'../../content/content_resources.gyp:content_resources',
'../../ui/resources/ui_resources.gyp:ui_resources',
'../../webkit/webkit_resources.gyp:webkit_resources',
'../../webkit/webkit_resources.gyp:webkit_strings',
],
......@@ -24,6 +25,7 @@
'<(PRODUCT_DIR)/app_shell.pak',
'<(SHARED_INTERMEDIATE_DIR)/ash/resources/ash_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
],
......
......@@ -23,8 +23,6 @@ class WindowManagerImpl : public WindowManager,
WindowManagerImpl();
virtual ~WindowManagerImpl();
void Init() { InstallAccelerators(); }
void Layout();
// WindowManager:
......@@ -42,7 +40,7 @@ class WindowManagerImpl : public WindowManager,
void InstallAccelerators() {
const AcceleratorData accelerator_data[] = {
{TRIGGER_ON_PRESS, ui::VKEY_6, ui::EF_NONE, COMMAND_TOGGLE_OVERVIEW,
{TRIGGER_ON_PRESS, ui::VKEY_F6, ui::EF_NONE, COMMAND_TOGGLE_OVERVIEW,
AF_NONE},
};
AcceleratorManager::Get()->RegisterAccelerators(
......@@ -116,6 +114,7 @@ WindowManagerImpl::WindowManagerImpl()
container_->SetLayoutManager(new AthenaContainerLayoutManager);
container_->AddObserver(this);
instance = this;
InstallAccelerators();
}
WindowManagerImpl::~WindowManagerImpl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment