Move accelerator_util to browser/ui.
This commit is contained in:
parent
d2f1a03b51
commit
f4425afb39
7 changed files with 12 additions and 12 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include "browser/api/atom_api_menu.h"
|
||||
|
||||
#include "browser/accelerator_util.h"
|
||||
#include "browser/api/atom_api_window.h"
|
||||
#include "browser/ui/accelerator_util.h"
|
||||
|
||||
#define UNWRAP_MEMNU_AND_CHECK \
|
||||
Menu* self = ObjectWrap::Unwrap<Menu>(args.This()); \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "browser/accelerator_util.h"
|
||||
#include "browser/ui/accelerator_util.h"
|
||||
|
||||
#include <string>
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BROWSER_ACCELERATOR_UTIL_H_
|
||||
#define BROWSER_ACCELERATOR_UTIL_H_
|
||||
#ifndef BROWSER_UI_ACCELERATOR_UTIL_H_
|
||||
#define BROWSER_UI_ACCELERATOR_UTIL_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -22,4 +22,4 @@ void SetPlatformAccelerator(ui::Accelerator* accelerator);
|
|||
|
||||
} // namespace accelerator_util
|
||||
|
||||
#endif // BROWSER_ACCELERATOR_UTIL_H_
|
||||
#endif // BROWSER_UI_ACCELERATOR_UTIL_H_
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "browser/accelerator_util.h"
|
||||
#include "browser/ui/accelerator_util.h"
|
||||
|
||||
#include "ui/base/accelerators/accelerator.h"
|
||||
#import "ui/base/accelerators/platform_accelerator_cocoa.h"
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "browser/accelerator_util.h"
|
||||
#include "browser/ui/accelerator_util.h"
|
||||
|
||||
#include "ui/base/accelerators/accelerator.h"
|
||||
|
|
@ -86,7 +86,7 @@ MessageDialog::MessageDialog(NativeWindow* parent_window,
|
|||
title_(UTF8ToUTF16(title)),
|
||||
widget_(NULL),
|
||||
message_box_view_(NULL) {
|
||||
DCHECK(buttons.size() > 0);
|
||||
DCHECK_GT(buttons.size(), 0);
|
||||
set_owned_by_client();
|
||||
|
||||
views::MessageBoxView::InitParams params(UTF8ToUTF16(title));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue